We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d568c4c commit 7fc12f4Copy full SHA for 7fc12f4
RelationTrait.php
@@ -260,14 +260,12 @@ public function deleteWithRelated($skippedRelations = [])
260
if ($data['ismultiple'] && !in_array($data['name'], $skippedRelations)) {
261
$link = $data['link'];
262
if (count($this->{$data['name']})) {
263
- $relPKAttr = $this->{$data['name']}[0]->primaryKey();
264
-// $isCompositePK = (count($relPKAttr) > 1); // unused
265
foreach ($link as $key => $value) {
266
if (isset($this->$value)) {
267
$array[$key] = $this->$value;
268
}
269
270
-// $error = !$this->{$data['name']}[0]->deleteAll(['and', $array]);
+ $error = !$this->{$data['name']}[0]->deleteAll(['and', $array]);
271
272
273
0 commit comments