BT
Size: a a a
BT
VK
BB
VK
BT
VK
BT
BT
BB
$refPeopleArray = $businessLicense->getRefPeople();
for ($i = 0; $i < sizeof($refPeopleArray); $i++){
$businessLicense->removeRefPerson($refPeopleArray[$i]);
$em->persist($businessLicense);
}
dd($businessLicense);
Что
я делаю не так, когда дебажу, показывает что удалил всего лишь один, вместо того чтобы удалить все (2)BT
BY
$refPeopleArray = $businessLicense->getRefPeople();
for ($i = 0; $i < sizeof($refPeopleArray); $i++){
$businessLicense->removeRefPerson($refPeopleArray[$i]);
$em->persist($businessLicense);
}
dd($businessLicense);
Что
я делаю не так, когда дебажу, показывает что удалил всего лишь один, вместо того чтобы удалить все (2)ВУ
BB
BB
BT
i
ПВ
Ш