Page 284 of 211,262, showing 20 records out of 4,225,228 total, starting on record 5,661, ending on 5,680
# | Username | Text | |
---|---|---|---|
# | Aug 8th 2008, 14:38 | jaredhoyt | not from me, my habtm experience is still kinda limited ;) |
# | Aug 8th 2008, 14:40 | lqdice____ | t.t |
# | Aug 8th 2008, 14:41 | polumrak | ACTION is scared :( |
# | Aug 8th 2008, 14:42 | teknoid | lqdice____: pass conditions to your join table model... |
# | Aug 8th 2008, 14:42 | lqdice____ | teknoid: can you give a quick example ? |
# | Aug 8th 2008, 14:43 | teknoid | lqdice____: $this->Group->GroupsNode->find('all', array('conditions'=>array('GroupsNode.group_id'=>5, 'GroupsNode.write_access'=>1... |
# | Aug 8th 2008, 14:43 | lqdice____ | ohh |
# | Aug 8th 2008, 14:43 | lqdice____ | i lub you |
# | Aug 8th 2008, 14:43 | teknoid | ehh... ok :) |
# | Aug 8th 2008, 14:44 | lqdice____ | i had done this before too just had forgotten |
# | Aug 8th 2008, 14:48 | digor | i have this in a comment model, http://bin.cakephp.org/view/617195461, and i can still put newlines in the body field |
# | Aug 8th 2008, 14:50 | lqdice____ | teknoid: only problem is im doing a 'Contain' and GroupsNode doesn't seem to have a reference to 'Node' .. when I do Group->find(..'contain'=>array('Node'=>'condition(...))) its fine but when i do that to GroupsNode it doesnt |
# | Aug 8th 2008, 14:50 | lqdice____ | do i have to create an GroupsNode class perhaps ? |
# | Aug 8th 2008, 14:51 | teknoid | lqdice____: i'm pretty sure join model is not bound by default, so you gotta do bindModel(array('belongsTo'=>.... |
# | Aug 8th 2008, 14:51 | lqdice____ | it doesnt need to be bound |
# | Aug 8th 2008, 14:51 | lqdice____ | i mean even the way I previously had it, if only it had done a 'write_access'=1 in the ON () join it would have been ok |
# | Aug 8th 2008, 14:51 | lqdice____ | its not a problem w/ binding i dont think |
# | Aug 8th 2008, 14:51 | lqdice____ | cause its not trying to do any crazy condition |
# | Aug 8th 2008, 14:52 | teknoid | lqdice____: then i don't understand what problem you are having... |
# | Aug 8th 2008, 14:52 | jaredhoyt | arg, i'm getting a 'table not found' when it's clearly there |