thank you for your response.
I know why it is working.. It is because when you are retrieving
document, this function is involved :
public void setAttributes(array $values, boolean $safeOnly=true),
where safeOnly is boolean whether the assignments should only be done
to the safe attributes. A safe attribute is one that is associated
with a validation rule in the current scenario.
By default, safeOnly will be set true, that's why your model will
returns the correct values.
I think the model should returns correct value even if we don't set
the rules.
You might not understand what I'm talking about since I'm not really a
good at explaining. But you will when you try to look at the source
code :D
cheers !
--
Brian
> 2011/8/3 Brian Kristoforus <bhbray...@gmail.com>
Hi, could you please send a backtrace?
Do you use any other behaviors? EEmbeddedArraysBehavior earlier had a
bug, that casued an error message like yours.
--
Nagy Attila Gabor
sorry, your previous two emails were empty (for me), and this link is
404. You might simply paste the trace into an email.
--
Nagy Attila Gabor
Sorry I had made link private plz check the screenshot agian in case its still 404