Create bean of table with underscore

792 views
Skip to first unread message

prakashraman

unread,
Apr 30, 2013, 1:36:39 PM4/30/13
to redbe...@googlegroups.com
I am sure there is a simple way to do this.

I want my table to be called "food_type". But when I try a 

R::dispense('food_type'); OR; R::dispense('foodType');

I Get
>> PHP Fatal error:  Uncaught exception 'RedBean_Exception_Security' with message 'Invalid type: foodType'

How can I create beans with tables that have underscores ?

Prakash Raman

unread,
Apr 30, 2013, 1:44:27 PM4/30/13
to redbe...@googlegroups.com
So I guess I cant use an underscore right ? But instead find a better name to represent my table.



--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Prakash Raman
Reply all
Reply to author
Forward
0 new messages