Hi nate !! Thanks very much for answer&tip :-) sory for multiple-posts
above, but my browser seem to freeze, and I was a little bit unpatient
:-)
Ok, thats clear. It will be fine if we can define if we want to save
all assoc model in one step, or use this single step way. But tell me
wha we must use $this->Post->Comment syntax ? $this->Comment->save wont
work ? Model should know that Comment belongTo Post, and if I perform
FindAll on Post than returned array is in form $array => [POST] ... and
$array =>[COMMENT] not in $array =>[POST][COMMENT] ... So why this
change ? It is because work with asoc is different in VIEWS and
CONTROLLERS ?
Again thanks much for help !! I am starting to dig inside Cake and it
is tastefull :-)
oh, I forgot, how to get asoc models when searching for single row in
DB ? read() wont work, and in manual suggested find("condition") wont
work either. Because if I use normal SQL condition like e.g. find(" id
= ' ".$post_id." ' ") it generates red SQL error, complaining about id
...
Thanks much.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---