Re: $this->User->modelA->save doesn't key modelA properly

2009-12-02 Thread John Andersen
In your ModelA controller, you have to add the users id manually before invoking the ModelA save. If you are using Auth, then get the users id from $this->Auth->user ('id') /* From my memory */ and add it to the data array before invoking ModelA. By using $this->User->ModelA does not automatically

$this->User->modelA->save doesn't key modelA properly

2009-12-02 Thread Christian
User has many ModelA So in the ModelA Controller, I replaced every $this->ModelA with $this- >User->ModelA so every action done is user specific. The index action successfully shows only that users ModelA's, however the add() action creates ModelA with user_id = 0 everytime. If this is the intende