W
W
wizi2019-06-27 15:14:58
PHP
wizi, 2019-06-27 15:14:58

How to create a one-to-many relationship in redbeanphp?

Hello, tell me how to do it correctly using redbeanphp
One user (user) can have many devices (device), and each of these devices can have many tasks (task).
I also want to load the user's data -> access his devices -> and tasks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Koshelenko, 2019-06-27
@GomelHawk

I think you should dig in this direction: eager loading .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question