PhpRiot
Recent Code Pastes

Listing 1415

Submitted by Andrej, 30 June 2008
class Feature extends AppModel {
    var $name = 'Feature';
    var $primaryKey = 'feature_id';
    
    var $hasMany = array(
        'Title'            =>
            array(
                'className'     => 'Intern',
                'foreignKey'     => 'foreign_key',
                'conditions'     => array('model' => 'Feature', 'field = "title"'),
                'dependent'        => true,
            )
    );
}
Submit a Follow Up