Log message #1034101

# At Username Text
# Sep 13th 2009, 14:28 ionas82 if you want to walk deep through model associations
# Sep 13th 2009, 14:27 ionas82 jway if you want to do it "right" use containable or linkable behaviors
# Sep 13th 2009, 14:27 Tampie jway did you use belongsTo?
# Sep 13th 2009, 14:27 thun if i just Lead->save($lead) it saves alot but not all the associtations
# Sep 13th 2009, 14:27 thun If I load a model Lead which has a bunch of relationships. I set the recursive to 1 and get all the HABTM results. if i load it into a var $lead can I take that var and duplicate the entire entry including all the HABTM entries
# Sep 13th 2009, 14:27 jway but why is the user information not added to the comment blocks?
# Sep 13th 2009, 14:27 jway Article->find('id=1') gives me an article object WITH all comments associated, as I used $hasMany relationship
# Sep 13th 2009, 14:26 jway and it works when calling Comment->findAll()
# Sep 13th 2009, 14:26 ionas82 markstory, any tips on saveAll and validation, seems not to tigger form->errors() ?
# Sep 13th 2009, 14:25 ionas82 works for sure
# Sep 13th 2009, 14:25 ionas82 http://bin.cakephp.org/view/586626198
# Sep 13th 2009, 14:24 ionas82 jway, sure?
# Sep 13th 2009, 14:24 jway ionas82, well you can use both but it makes no difference
# Sep 13th 2009, 14:23 ionas82 ~bin
# Sep 13th 2009, 14:23 ionas82 y
# Sep 13th 2009, 14:23 ionas82 jway those variables take array usualle
# Sep 13th 2009, 14:22 ionas82 http://book.cakephp.org/img/typical-cake-request.gif
# Sep 13th 2009, 14:22 jway but it does not get user information when getting an article
# Sep 13th 2009, 14:22 ionas82 before calling the action
# Sep 13th 2009, 14:22 jway so in Comment I used $belongsTo = 'User'
# Sep 13th 2009, 14:22 ionas82 NoReGreT, in your controller
# Sep 13th 2009, 14:22 jway but a comment has a user_id which I need to lookup to get the username
# Sep 13th 2009, 14:21 jway I have an article model with $hasMany = 'Comment' and this works fine and retrieves all comments associated with the current article
# Sep 13th 2009, 14:21 NoReGreT when does beforeFilter() occur ?
# Sep 13th 2009, 14:18 ionas82 ah so sweet
# Sep 13th 2009, 14:18 ionas82 ah so simple
# Sep 13th 2009, 14:18 ionas82 now lets find out how to specify fieldList
# Sep 13th 2009, 14:18 ionas82 hm
# Sep 13th 2009, 14:16 markstory )
# Sep 13th 2009, 14:16 ionas82 thank you markstory, half the codesize (just by searching for "transaction" on the book) and working transactions :)))
# Sep 13th 2009, 14:14 hyther s
# Sep 13th 2009, 14:14 hyther translate behavior doesn't work with something like thi
# Sep 13th 2009, 14:14 hyther http://bin.cakephp.org/view/880928755
# Sep 13th 2009, 14:12 savant1 ~tell hyther about bin
# Sep 13th 2009, 14:12 hyther just making this in app_model give me problem using i18n
# Sep 13th 2009, 14:12 hyther }
# Sep 13th 2009, 14:12 hyther parent::find( $type, $options = array() );
# Sep 13th 2009, 14:12 hyther function find($type, $options = array() ) {
# Sep 13th 2009, 14:11 hyther I got a problem with I18n and custom find() in app_model
# Sep 13th 2009, 14:10 markstory but you still need to use the correct tables.
# Sep 13th 2009, 14:10 markstory saveAll uses transactions yes.