using "like " in find()

2014-06-30 Thread jim murray
I want to do the equivalent of "select * from employees where EMAIL like 
'A%'
I have been reading the documentation for Model.find() but can't figure it 
out.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


A session problem using database(cake-sessions)

2012-06-01 Thread Murray
I'm planning to use the database session mode in cake 1.3 for load
balance through servers. However, in one of my servers, the session
expires immediately while i write a session value, and the records in
the database is odd and very very long.(The records from other servers
are short). It's something like this:

Config|N;s:9:"userAgent";s:
0:"";s:4:"time";i:
1339560686;s:7:"timeout";i:10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:1339560681;s:
7:"timeout";i:10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:1339560681;s:
7:"timeout";i:10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560681;s:
7:"timeout";i:10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560681;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560681;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560680;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560637;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560636;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560636;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560635;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560634;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560633;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:&