protected function _parseRelation($relation)
    {
        $scope = null;
        if (strpos($relation, ':') !== false) {
            list($relation, $scope) = explode(':', $relation);
        }

        return [$relation, $scope];
    }
protected function _parseRelation($relation)
    {
        $scope = null;
        if (strpos($relation, ':') !== false) {
            list($relation, $scope) = explode(':', $relation);
        }

        return [$relation, $scope];
    }
protected function _parseRelation ( $ relation ) { $ scope = null ; if ( strpos ( $ relation , ':' ) !== false ) { list ( $ relation , $ scope ) = explode ( ':' , $ relation ) ; } return [ $ relation , $ scope ] ; }
Parse relation string to extract relation name and optional scope

@param $relation

@return array [relation name, scope name]
Parse relation string to extract relation name and optional scope