hi list,

with your help and guidelines i was able to add checkbox data
un/serialisation methods via the beforeSave() and afterFind()
model callbacks.

But i ran into heavy trouble, because models are associated
in my design (i have authors and articles basically).
I had errors in my views of the type ("undefined index...").
For example in a simple article index list of one author,
cake pulls *every* associated data, i.e. author profiles and
so on. This lead to the errors mentioned above.

I thought "ok, maybe i have to decouple certain models for
certain views", or "ok, i have to check $result in afterFind()
whether a certain array key exists..." and so on.

Finally, after 3 hours i ended up putting the un/serialisation
methods back into the controllers, which is not so nice, but
at least i don't get any errors in my views.

Please let me know, if you need to see some code or if i have
described my problem precisely enough.

jyrgen


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to