Skip to content

Commit

Permalink
Fix an issue with an outdated method being called (#1194)
Browse files Browse the repository at this point in the history
Fix an issue with an outdated method being called.  The error only shows up when NativeDeleteTrigger is not supported.
  • Loading branch information
Taylor Jones authored and marcj committed May 26, 2016
1 parent 8536fe6 commit 32a4243
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -110,7 +110,7 @@ public function postSave($builder)
public function postDelete($builder)
{
$this->builder = $builder;
if (!$builder->getPlatform()->supportsNativeDeleteTrigger() && !$builder->get()['generator']['objectModel']['emulateForeignKeyConstraints']) {
if (!$builder->getPlatform()->supportsNativeDeleteTrigger() && !$builder->getBuildProperty('generator.objectModel.emulateForeignKeyConstraints')) {
$script = "// emulate delete cascade
{$this->getVersionQueryClassName()}::create()
->filterBy{$this->table->getPhpName()}(\$this)
Expand Down

0 comments on commit 32a4243

Please sign in to comment.