R:find() returns beans ?

33 views
Skip to first unread message

daslicht

unread,
Sep 6, 2014, 1:25:14 PM9/6/14
to redbe...@googlegroups.com
Hi,
The find function does not work for me as described in the manual:

When I try to use this:

$c  = \R::find( 'blog', "status = init ");

I get :
An error occurred: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'init' in 'where clause'<br>

However this seams to work:
$c  = \R::find( 'blog', "status = 'init' ");
I get something but not beans:


Do I have to convert those results somehow ?

Matthew Frederico

unread,
Sep 8, 2014, 12:35:27 AM9/8/14
to redbe...@googlegroups.com
try it quoted:
R::find('blog','status="init"');

or with bindings
R::find('blog','status=?',array('init'));


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



--
--
-- Matthew Frederico
Reply all
Reply to author
Forward
0 new messages