Log message #1031773

# At Username Text
# Sep 11th 2009, 09:56 markstory like I said, just type it in.
# Sep 11th 2009, 09:56 markstory hasOne => array('Note2' => array(...)
# Sep 11th 2009, 09:56 markstory ?
# Sep 11th 2009, 09:56 jessica-m yeah how do i do that?
# Sep 11th 2009, 09:56 markstory that might be the issue too.
# Sep 11th 2009, 09:56 markstory jessica-m: try giving them different aliases.
# Sep 11th 2009, 09:55 TehTreag markstory: I guess with containable, I hadn't noticed that behavior with un/bindModel.
# Sep 11th 2009, 09:55 SimoBru Folks, is there a specific reason why AfterFind is called from dbo_source?
# Sep 11th 2009, 09:55 jessica-m adding false didnt do anything
# Sep 11th 2009, 09:54 FunkyWeasel Subscription belongsTo User which belongsTo Contact. I am trying to use a containable field in a find to get Subscription, User and Contact data back in the result. Is "'contain'=>array('User'=>array('Contact'))" the correct parameter to use? I only get User and Subscription information back.
# Sep 11th 2009, 09:53 jessica-m hmm
# Sep 11th 2009, 09:53 markstory well if you have a way to reproduce that isn't a tar file and think its a bug open a ticket.
# Sep 11th 2009, 09:52 crayfishuk beforeRedirects throws away the $url param - because I have a Component which uses RequestHandler.
# Sep 11th 2009, 09:52 markstory jessica-m: bindModel(); unbindModel(... , false);
# Sep 11th 2009, 09:52 markstory crayfishuk: is it converting your redirects into requestaction?
# Sep 11th 2009, 09:51 crayfishuk I think I've found a bug in controller.php.... To do with beforeRedirect and RequestHandlerComponent... it's taken me all day - and I'm convinced it's a bug...
# Sep 11th 2009, 09:51 jessica-m okay so put the bindmodel after unbindmodel?
# Sep 11th 2009, 09:51 markstory they will reset eachother as well.
# Sep 11th 2009, 09:51 TehTreag markstory: I though un/bindModel were reset after find?
# Sep 11th 2009, 09:50 markstory I think that should work.
# Sep 11th 2009, 09:50 markstory sorry I got confused there for a second.
# Sep 11th 2009, 09:50 markstory and leave the order the same, as you had it.
# Sep 11th 2009, 09:50 markstory so it doesn't reset the associations you just bound.
# Sep 11th 2009, 09:50 markstory so in unbindModel set second param = false
# Sep 11th 2009, 09:50 jessica-m thats supposed to be note.id = comment.note_id
# Sep 11th 2009, 09:50 jessica-m when i put the bindmodel first, it changes the query to this: LEFT JOIN `notes` AS `Note` ON ( `Note`.`id` = `Comment`.`id` )
# Sep 11th 2009, 09:50 FunkyWeasel Good afternoon.
# Sep 11th 2009, 09:49 jessica-m ok
# Sep 11th 2009, 09:49 markstory jessica-m: since they are both temporary, one will reset the other.
# Sep 11th 2009, 09:48 zboarapuisor i have a problem with a bind relationship ,"$this->User->bindModel(array('hasMany'=>array('Photo'=>array('conditions'=>array('Photo.type'=>'a')))));",
# Sep 11th 2009, 09:48 markstory then the unbindModel()
# Sep 11th 2009, 09:48 markstory but the bindModel() first.
# Sep 11th 2009, 09:48 markstory well you have two associations to Note.
# Sep 11th 2009, 09:47 jessica-m what do you mean type it in? where?
# Sep 11th 2009, 09:47 zboarapuisor hi
# Sep 11th 2009, 09:47 TehTreag ~tell hmv about bin
# Sep 11th 2009, 09:47 TehTreag ~tell hmv about pastebin
# Sep 11th 2009, 09:47 TehTreag hmv: Can you pastebin what you have?
# Sep 11th 2009, 09:47 markstory type it in.
# Sep 11th 2009, 09:46 jessica-m how do i do that?
# Sep 11th 2009, 09:46 jessica-m it is left joining notes twice