CakePHP Model hasAndBelongsToMany association
Copy this code and paste it in your HTML
var $hasAndBelongsToMany = array('Model' => array( 'className' => 'Model',
'joinTable' => '',
'foreignKey' => '',
'associationForeignKey'=> '',
'conditions' => '',
'order' => '',
'limit' => '',
'unique' => true,
'finderQuery' => '',
'deleteQuery' => '',
));
URL: http://manual.cakephp.org/chapter/models
Report this snippet
Comments
Subscribe to comments