Created
February 27, 2016 14:18
-
-
Save cakephp-tutorial/bbf547582714a3deae4d 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/Region.php | |
class Region extends AppModel { | |
public $displayField = 'region'; | |
public $hasAndBelongsToMany = array('Order'); | |
public $validate = array( | |
'region' => array( | |
'rule' => array('notEmpty'), | |
'required' => true, | |
'message' => 'inserire la regione' | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment