Posted By

jesse on 04/04/08


Tagged

cakephp model association cake hasOne


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Wiederkehr
travisa86


CakePHP Model hasOne association


 / Published in: PHP
 

URL: http://manual.cakephp.org/chapter/models

This class var definition configures a Model to have a OneToOne relationship with a Model of another class.

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

Report this snippet  

You need to login to post a comment.