vendor/cakephp/cakephp/src/ORM/Association/HasMany.php 1 location
|
@@ 284-290 (lines=7) @@
|
| 281 |
|
*/ |
| 282 |
|
public function unlink(EntityInterface $sourceEntity, array $targetEntities, $options = []) |
| 283 |
|
{ |
| 284 |
|
if (is_bool($options)) { |
| 285 |
|
$options = [ |
| 286 |
|
'cleanProperty' => $options |
| 287 |
|
]; |
| 288 |
|
} else { |
| 289 |
|
$options += ['cleanProperty' => true]; |
| 290 |
|
} |
| 291 |
|
|
| 292 |
|
$foreignKey = (array)$this->foreignKey(); |
| 293 |
|
$target = $this->target(); |
vendor/cakephp/cakephp/src/ORM/Association/BelongsToMany.php 1 location
|
@@ 755-761 (lines=7) @@
|
| 752 |
|
*/ |
| 753 |
|
public function unlink(EntityInterface $sourceEntity, array $targetEntities, $options = []) |
| 754 |
|
{ |
| 755 |
|
if (is_bool($options)) { |
| 756 |
|
$options = [ |
| 757 |
|
'cleanProperty' => $options |
| 758 |
|
]; |
| 759 |
|
} else { |
| 760 |
|
$options += ['cleanProperty' => true]; |
| 761 |
|
} |
| 762 |
|
|
| 763 |
|
$this->_checkPersistenceStatus($sourceEntity, $targetEntities); |
| 764 |
|
$property = $this->property(); |