Use virtualFields!
http://book.cakephp.org/2.0/en/models/virtual-fields.html
Em sexta-feira, 24 de fevereiro de 2012 17h28min10s UTC-2, Łukasz escreveu:
>
> Hi everybody!
>
> I am trying to fetch data with find('list') function and when my
> "fields" attribute looks like array('User.id', 'User,created') it
> works properly but when I add inbulit MySQL function to User.created
> field (for example MONTH(User.created)) it stops working, why?
>
> Thx in advance,
> Łukasz
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php