use redbean without id field

45 views
Skip to first unread message

ian

unread,
Mar 29, 2012, 5:42:39 PM3/29/12
to redbe...@googlegroups.com
Hi there

i have existing table without id field
the table have some data
but when i use this 

$all = R::find('tbl_rwyt_latker');

foreach($all as $data):
     $data->personil_id;
endforeach;

it's only return one row

thx

--

Regards,
Herliansyah

gabor

unread,
Apr 2, 2013, 2:01:07 PM4/2/13
to redbe...@googlegroups.com


Hi,

The id field is mandatory in RedBeanPHP, however I don't find this example very
clear. Can you send a small piece of code that demonstrates the problem (a code snippet that can be run from PHP-CLI perhaps?).
That makes it way more easy to research a possible issue.

cheers,
Gabor


On Tuesday, April 2, 2013 12:16:54 PM UTC+2, Kim Skytte wrote:
I have the exact same problem. An answer is much appreciated!
  Regards Kim Skytte
Reply all
Reply to author
Forward
0 new messages