public function findByName( $name )
    {

        // is this name schema qualified
        $call = sprintf(
            "findBy%s",
            ( false !== strpos( $name, '.' ) ) ? 'FullyQualifiedName' : 'Name'
        );

        $found = $this->persistedGet()->$call( $name );

        // return
        switch( $count = count( $found ) ) {
            case 0:
                return null;
            case 1:
                return $found->pop();
            default:
                throw new \LogicException( "{$count} relations' found with name `{$name}`. Ambiguous. Can't proceed." );
        }

    }
public function findByName( $name )
    {

        // is this name schema qualified
        $call = sprintf(
            "findBy%s",
            ( false !== strpos( $name, '.' ) ) ? 'FullyQualifiedName' : 'Name'
        );

        $found = $this->persistedGet()->$call( $name );

        // return
        switch( $count = count( $found ) ) {
            case 0:
                return null;
            case 1:
                return $found->pop();
            default:
                throw new \LogicException( "{$count} relations' found with name `{$name}`. Ambiguous. Can't proceed." );
        }

    }
public function findByName ( $ name ) { // is this name schema qualified $ call = sprintf ( "findBy%s" , ( false !== strpos ( $ name , '.' ) ) ? 'FullyQualifiedName' : 'Name' ) ; $ found = $ this -> persistedGet ( ) -> $ call ( $ name ) ; // return switch ( $ count = count ( $ found ) ) { case 0 : return null ; case 1 : return $ found -> pop ( ) ; default : throw new \ LogicException ( "{$count} relations' found with name `{$name}`. Ambiguous. Can't proceed." ) ; } }
Return a index from it's name
@param string
@return Entity\Relation
Return a index from it s name