OEModule\OphCoCvi\models\Element_OphCoCvi_EventInfo::defaultScope PHP Method

defaultScope() public method

Sets default scope for events such that we never pull back any rows that have deleted set to 1.
public defaultScope ( ) : array
return array of mandatory conditions
    public function defaultScope()
    {
        if ($this->defaultScopeDisabled) {
            return array();
        }
        return array('with' => array('event' => array('condition' => 'event.deleted = false')));
    }