Answer the question
In order to leave comments, you need to log in
How to implement on ORM?
Hello.
I am using ORM RedBeanPHP.
I get data from tables thanks to two variables, these are $bd_table and $bd_table_param.
$bd_table - responsible for which table to get data from
$bd_table_param - responsible for the key in the table, i.e. same advert_id
$objects = R::findOne($bd_table, status > 0 AND type = ? AND $bd_table_param = ?", [$sendmail->type, $bd_table_param, $id]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question