Answer the question
In order to leave comments, you need to log in
How to write an array of data to an entity using doctrine?
Good afternoon.
Actually the following interests:
There are 2 entities.
TBL
PHONES
We have an array of data
$tbl = [
'tbl_id' => 1,
'name' => 'test',
'phones' => [1, 2, 3, 4]
];
oneToMany:
phones:
targetEntity: Phones
mappedBy: Tbl
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