How to get all the relations

38 views
Skip to first unread message

sap...@gmail.com

unread,
Aug 8, 2017, 12:22:24 PM8/8/17
to redbeanphp
Hi, im new to redbean, i want to get x table from the database with all its relations, for example, i want to get all the books from the database and i want to know in what store is each book, how can i do that? im not used to redbean terms :(

thanks :)

Didier Boka

unread,
Oct 26, 2017, 2:54:52 PM10/26/17
to redbeanphp
I !

Todo that try this.

$books = $this->db::findAll('localidad');

foreach ($books as $booksKey => $booksValue) {
    echo $booksValue['yourTableKeyHere'];
}
Reply all
Reply to author
Forward
0 new messages