protected function isDeleteCascadeEmulationNeeded()
    {
        $table = $this->getTable();
        if ((!$this->getPlatform()->supportsNativeDeleteTrigger() || $this->getBuildProperty('generator.objectModel.emulateForeignKeyConstraints')) && count($table->getReferrers()) > 0) {
            foreach ($table->getReferrers() as $fk) {
                if ( ForeignKey::CASCADE === $fk->getOnDelete()) {
                    return true;
                }
            }
        }

        return false;
    }
protected function isDeleteCascadeEmulationNeeded()
    {
        $table = $this->getTable();
        if ((!$this->getPlatform()->supportsNativeDeleteTrigger() || $this->getBuildProperty('generator.objectModel.emulateForeignKeyConstraints')) && count($table->getReferrers()) > 0) {
            foreach ($table->getReferrers() as $fk) {
                if ( ForeignKey::CASCADE === $fk->getOnDelete()) {
                    return true;
                }
            }
        }

        return false;
    }
protected function isDeleteCascadeEmulationNeeded ( ) { $ table = $ this -> getTable ( ) ; if ( ( ! $ this -> getPlatform ( ) -> supportsNativeDeleteTrigger ( ) || $ this -> getBuildProperty ( 'generator.objectModel.emulateForeignKeyConstraints' ) ) && count ( $ table -> getReferrers ( ) ) > 0 ) { foreach ( $ table -> getReferrers ( ) as $ fk ) { if ( ForeignKey :: CASCADE === $ fk -> getOnDelete ( ) ) { return true ; } } } return false ; }
Whether the platform in use requires ON DELETE CASCADE emulation and whether there are references to this table.
@return boolean
Whether the platform in use requires ON DELETE CASCADE emulation and whether there are references to this table .