Return to Snippet

Revision: 5799
at April 4, 2008 20:21 by jesse


Initial Code
var $belongsTo = array('Model' => array(
	'className'  => 'Model',
	'conditions' => '',
	'order'      => '',
	'foreignKey' => ''
));

Initial URL

                                

Initial Description
This class var creates a belongsTo association between this and another Model

Initial Title
CakePHP Model belongsTo association

Initial Tags
cakephp

Initial Language
PHP