protected function hydrateModel($primaryKey)
    {
        try {
            $query = $this->prepareQuery();
            $this->model = $this->findPk($query, $primaryKey);
        } catch (\Exception $e) {
            Logger::log(get_class($this) . ': ' . $e->getMessage(), LOG_ERR);
        }
    }
protected function hydrateModel($primaryKey)
    {
        try {
            $query = $this->prepareQuery();
            $this->model = $this->findPk($query, $primaryKey);
        } catch (\Exception $e) {
            Logger::log(get_class($this) . ': ' . $e->getMessage(), LOG_ERR);
        }
    }
protected function hydrateModel ( $ primaryKey ) { try { $ query = $ this -> prepareQuery ( ) ; $ this -> model = $ this -> findPk ( $ query , $ primaryKey ) ; } catch ( \ Exception $ e ) { Logger :: log ( get_class ( $ this ) . ': ' . $ e -> getMessage ( ) , LOG_ERR ) ; } }
Hydrate model from pk

@param string $primaryKey
Hydrate model from pk