src/Entities.php
public function findOne($moduleName, array $params, array $select = [ ])
    {
        $entityID = $this->getID($moduleName, $params);
        return (empty($entityID))
            ? null
            : $this->findOneByID($moduleName, $entityID, $select);
    }
public function findOne($moduleName, array $params, array $select = [ ])
    {
        $entityID = $this->getID($moduleName, $params);
        return (empty($entityID))
            ? null
            : $this->findOneByID($moduleName, $entityID, $select);
    }
public function findOne ( $ moduleName , array $ params , array $ select = [ ] ) { $ entityID = $ this -> getID ( $ moduleName , $ params ) ; return ( empty ( $ entityID ) ) ? null : $ this -> findOneByID ( $ moduleName , $ entityID , $ select ) ; }
Retrieve the entity matching a list of constraints
@param  string  $moduleName   The name of the module / entity type
@param  array   $params  Data used to find a matching entry
@return array   $select  The list of fields to select (defaults to SQL-like '*' - all the fields)
@return array  The matching record
Retrieve the entity matching a list of constraints