CakePHP Model belongsTo association


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. var $belongsTo = array('Model' => array(
  2. 'className' => 'Model',
  3. 'conditions' => '',
  4. 'order' => '',
  5. 'foreignKey' => ''
  6. ));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.