Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
#/app/Model/Book.php
class Book extends AppModel {
public $name = 'Book';
public $displayField ='title';
//definizione della relazione con altro modello
public $belongsTo = array('Author');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment