I was created model as manyToMany like this
<?php
$this->hasManyToMany('id',
'Vokuro\Models\BannerSitePlace',
'banner_id',
'site_place_id',
'Vokuro\Models\SitePlace',
'id',
array('alias' => 'places')
);
On update entity after
<?php
$banner->places = $places;
$banner->save();// or ->update
The old relationships not deleted. If i try delete before save all data like
<?php
foreach($banner->places as $place){
$place->delete();
}
Phalcon tried to delete "place" that related also to an anather model instead of to delete relationship. How delete only relationships?