public function hasReference( $reference, &$referenceDetail = null )
    {

        $referenceDetail = null;

        foreach( $this->__get('references') as $name => $detail ) {

            if( $name == $reference or $detail[0] == $reference ) {
                $referenceDetail = $detail;
                return $name;
            }

        }

        return null;

    }
public function hasReference( $reference, &$referenceDetail = null )
    {

        $referenceDetail = null;

        foreach( $this->__get('references') as $name => $detail ) {

            if( $name == $reference or $detail[0] == $reference ) {
                $referenceDetail = $detail;
                return $name;
            }

        }

        return null;

    }
public function hasReference ( $ reference , & $ referenceDetail = null ) { $ referenceDetail = null ; foreach ( $ this -> __get ( 'references' ) as $ name => $ detail ) { if ( $ name == $ reference or $ detail [ 0 ] == $ reference ) { $ referenceDetail = $ detail ; return $ name ; } } return null ; }
Check if Entity has link

@param mixed $reference
@param mixed $referenceDetail

@return boolean
Check if Entity has link