Issue with habtm

2011-09-06 Thread Ruslan Inozemtsev
Hello, i'm trying to start using HABTM in Cake 1.3, but can't understand how can i add an realtion. Im trynig to create new relation between User and Project records in DB, but no data apperas in users_projects after im saving data :( My code is: $data = array( 'User' => array('id' => 1),

Using one model from another

2010-05-28 Thread Ruslan Inozemtsev
Hello, I have to independent models and i need to update Model1 on beforeSave in Model2, what is the right way to include one model into another, something similar to var $usees = array() in controller ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePH