public function findModelByUniqueIdentifier($identifier)
    {
        $this->filter(new Equals($this->getModelSchema()->uniqueIdentifierColumnName, $identifier));

        return $this[0];
    }
public function findModelByUniqueIdentifier($identifier)
    {
        $this->filter(new Equals($this->getModelSchema()->uniqueIdentifierColumnName, $identifier));

        return $this[0];
    }
public function findModelByUniqueIdentifier ( $ identifier ) { $ this -> filter ( new Equals ( $ this -> getModelSchema ( ) -> uniqueIdentifierColumnName , $ identifier ) ) ; return $ this [ 0 ] ; }
Filters the collection to the given identifier.

@param $identifier
@return mixed
Filters the collection to the given identifier .