Posted By

jesse on 04/04/08


Tagged

cakephp model association cake


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Wiederkehr
travisa86


CakePHP Model belongsTo association


 / Published in: PHP
 

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

  1. var $belongsTo = array('Model' => array(
  2. 'className' => 'Model',
  3. 'conditions' => '',
  4. 'order' => '',
  5. 'foreignKey' => ''
  6. ));

Report this snippet  

You need to login to post a comment.