src/CoreBundle/EventListener/DcGeneral/Table/Attribute/AttributeSavedListener.php
private function isAttributeNameOrTypeChanged(ModelInterface $new, ModelInterface $old)
    {
        return ($old->getProperty('type') !== $new->getProperty('type'))
            || ($old->getProperty('colname') !== $new->getProperty('colname'));
    }
private function isAttributeNameOrTypeChanged(ModelInterface $new, ModelInterface $old)
    {
        return ($old->getProperty('type') !== $new->getProperty('type'))
            || ($old->getProperty('colname') !== $new->getProperty('colname'));
    }
private function isAttributeNameOrTypeChanged ( ModelInterface $ new , ModelInterface $ old ) { return ( $ old -> getProperty ( 'type' ) !== $ new -> getProperty ( 'type' ) ) || ( $ old -> getProperty ( 'colname' ) !== $ new -> getProperty ( 'colname' ) ) ; }
Check if either type or column name have been changed within the model.

@param ModelInterface $new The new model.
@param ModelInterface $old The old model (or null).

@return bool
Check if either type or column name have been changed within the model .