Created
February 26, 2016 16:20
-
-
Save cakephp-tutorial/ca8c30ff130453828fe5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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