public function findOne($query, array $data = null) {       
        $stmt = $this->executeQuery($query, $data);   
        
        return $stmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOne($query, array $data = null) {       
        $stmt = $this->executeQuery($query, $data);   
        
        return $stmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOne ( $ query , array $ data = null ) { $ stmt = $ this -> executeQuery ( $ query , $ data ) ; return $ stmt -> fetch ( \ PDO :: FETCH_ASSOC ) ; }
Fetch a record from the storage

@param string $query
@param array $data
@return object data as object
Fetch a record from the storage