Hello, there is a table of messages in which there are 2 fields sender and addressee in which the sender ID and recipient ID are stored
I make the first request:
$sender = R::findAll('messages', 'sender = ?', ['32']); I make a second request
$addressee = R::findAll('messages', 'addressee = ?', ['35']); I receive 2 selections from a DB
Tell me how to combine these 2 requests or advise the correct implementation based on ORM RedBeanPHP
Please help in the implementation!
R::findAll('messages', 'sender = ? addressee = ?', ['32','35']);. - Akina