Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.