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.
2 parents 0ea547e + ee7b95a commit 0bbfb81Copy full SHA for 0bbfb81
RelationTrait.php
@@ -254,7 +254,7 @@ public function deleteWithRelated()
254
$isCompositePK = (count($relPKAttr) > 1);
255
foreach ($link as $key => $value) {
256
if (isset($this->$value)) {
257
- $array[$key] = $key . ' = ' . $this->$value;
+ $array[$key] = "$key = '{$this->$value}'";
258
}
259
260
$error = !$this->{$data['name']}[0]->deleteAll(implode(' AND ', $array));
0 commit comments