public function findByApiKey( $value )
    {

        $apiOptions = $this->__get('apiOptions');

        if( !isset( $apiOptions['findByKey'] ) ) {
            return $this->find( $value, true );
        }

        $property = $apiOptions['findByKey'];

        $filter = $this->getFindFilterFactory()
            ->get( $property, null, $value );

        return $this->findByFilterComponents(
            FindFilterComponentFactory::FIND_ONE,
            array( $property => $filter ),
            self::ALL
        );

    }
public function findByApiKey( $value )
    {

        $apiOptions = $this->__get('apiOptions');

        if( !isset( $apiOptions['findByKey'] ) ) {
            return $this->find( $value, true );
        }

        $property = $apiOptions['findByKey'];

        $filter = $this->getFindFilterFactory()
            ->get( $property, null, $value );

        return $this->findByFilterComponents(
            FindFilterComponentFactory::FIND_ONE,
            array( $property => $filter ),
            self::ALL
        );

    }
public function findByApiKey ( $ value ) { $ apiOptions = $ this -> __get ( 'apiOptions' ) ; if ( ! isset ( $ apiOptions [ 'findByKey' ] ) ) { return $ this -> find ( $ value , true ) ; } $ property = $ apiOptions [ 'findByKey' ] ; $ filter = $ this -> getFindFilterFactory ( ) -> get ( $ property , null , $ value ) ; return $ this -> findByFilterComponents ( FindFilterComponentFactory :: FIND_ONE , array ( $ property => $ filter ) , self :: ALL ) ; }
Look up a entity based on it's api key
@param mixed $value
@return entity |
Look up a entity based on it s api key