On Mon, Jan 3, 2011 at 8:50 PM, OR <[email protected]> wrote:
> I created a model with some virtual fields. When i search for an entry
> in that specific table with this model - like test->findByName('xyz')
> (this entry is NOT in the table) - I get an array returned which has
> the index of the model and in this index the listing of all  columns
> plus the virtual fields (as an index). Every index has no value but i
> can not check for an empty array in my controller (because it IS not
> empty). Is this a common problem in cake? (I could filter for this in
> the afterFind callback but i ask myself if there is a better
> workaround?)

I can't reproduce that. What version are you running? I checked in 1.3.6.

Do you have any behaviors attached? Any afterFind() code? Try without
either of those.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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