Hi bakers.
I've come up with a problem(?) when changing data in afterFind() with
hasOne associations.
Lets say i have a model SomeModel that hasOne SomeOtherModel. If i do a
find() (findAll(), etc.) on SomeModel i get:
Array
(
[SomeModel] => Array
(
[field1] => value1
[field2] => value2
)
[SomeOtherModel] => Array
(
[field3] => value3
[field4] => value4
)
)
All fine so far. Now let's say i have an afterFind() in SomeOtherModel
that changes the value of field3. What i get then is:
Array
(
[SomeModel] => Array
(
[field1] => value1
[field2] => value2
)
[SomeOtherModel] => Array
(
[field3] => changed value3
[field4] => value4
[SomeOtherModel] => Array
(
[field3] => value3
[field4] => value4
)
)
)
Is this normal behavior or a bug?
Thanks in advance.
--
Gonçalo Marrafa <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---