I\'m working on an already existing cakephp 1.3 project and I needed to add a new table to the database. I have this in my controller:
$conditions = arra
Add a $hasOne relation to Person model with Email like below
var $hasOne = array(
'Email' => array(
'className' => 'Email',
'foreignKey' => 'person_id' // Column defined for person ids in Email table
)
);
Then add
$this->ShootingPlacement->recursive = 2;
OR you can simply use joins in cakephp to join email model. Refer cakephp joining tables