array('Note'); function __construct($id = false, $table = null, $ds = null) { parent::__construct($id, $table, $ds); if (isset($this->hasMany['Note'])) { $this->hasMany['Note']['conditions']['Note.class'] = $this->name; $this->hasMany['Note']['foreignKey'] = 'foreign_id'; } } ?>