Bug when setting a property that ends with _id

150 views
Skip to first unread message

al...@yellowpagesdir.com

unread,
Jul 2, 2013, 4:34:53 PM7/2/13
to redbe...@googlegroups.com
Several of the properties we set in the bean end with "_id". So, if I set a property called "device_id", and then later I set a property called "device" the _set method throws "cannot cast to bean" error.

Thanks in advance for your response,
Allen Lowe

gabor

unread,
Jul 2, 2013, 5:44:55 PM7/2/13
to redbe...@googlegroups.com

Hi,

Welcome to the forum.

This behaviour is expected and has been described in the manual:
http://www.redbeanphp.com/parent_object (see 'reserved column')

cheers,
Gabor

Nuno Ribeiro

unread,
Oct 27, 2015, 10:51:49 AM10/27/15
to redbeanphp
url not working...

gabor

unread,
Oct 27, 2015, 3:01:15 PM10/27/15
to redbeanphp
Old post, here is the new URL: http://www.redbeanphp.com/many_to_one
Reply all
Reply to author
Forward
0 new messages