Check the test case for this new feature:
http://github.com/cakephp/cakephp1x/commit/02330b2d9c292110240c606e976e182c973897e9#diff-1
Some people says this kind of things breaks the MVC pattern. I should be
something like
1) get Section lft.
2) add 1 to this
3) save the result in Section rght.
Hope this helps.
MARTIN
On 02/11/2010 06:19 AM, toka...@gmail.com wrote:
Hi, how can I pass a MATH operation into SQL via cake??
I try to do this..but cake always quotes the '+ 1' as well, and sql
then treat it as a string...
array('Section.rght' => 'Section.lft + 1')
is there any trick??
Thanks
Tomas
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en