lib/Doctrine/DBAL/Schema/ForeignKeyConstraint.php
private function onEvent($event)
    {
        if (isset($this->_options[$event])) {
            $onEvent = strtoupper($this->_options[$event]);

            if (! in_array($onEvent, ['NO ACTION', 'RESTRICT'])) {
                return $onEvent;
            }
        }

        return false;
    }
private function onEvent($event)
    {
        if (isset($this->_options[$event])) {
            $onEvent = strtoupper($this->_options[$event]);

            if (! in_array($onEvent, ['NO ACTION', 'RESTRICT'])) {
                return $onEvent;
            }
        }

        return false;
    }
private function onEvent ( $ event ) { if ( isset ( $ this -> _options [ $ event ] ) ) { $ onEvent = strtoupper ( $ this -> _options [ $ event ] ) ; if ( ! in_array ( $ onEvent , [ 'NO ACTION' , 'RESTRICT' ] ) ) { return $ onEvent ; } } return false ; }
Returns the referential action for a given database operation
on the referenced table the foreign key constraint is associated with.

@param string $event Name of the database operation/event to return the referential action for.

@return string|null
Returns the referential action for a given database operation on the referenced table the foreign key constraint is associated with .