src/Dao/MySql/SelectMySqlDao.php
protected function execute(DalInterface $dal, TableInterface $table = null)
    {
        if (!$this->sth || $this->queryString !== $this->sth->queryString) {
            $this->sth = $dal->getLayer()->prepare($this->queryString);
            $this->sth->setFetchMode(\PDO::FETCH_OBJ);
            $this->bindParam($this->sth);
        }
        $this->sth->execute();
        $this->result = $this->sth->fetchAll();
        $this->row = count($this->result);
        if (1 === $this->row) {
            foreach ($this->result[0] as $key => $value) {
                $table->{$key} = $value;
            }
        }
    }
protected function execute(DalInterface $dal, TableInterface $table = null)
    {
        if (!$this->sth || $this->queryString !== $this->sth->queryString) {
            $this->sth = $dal->getLayer()->prepare($this->queryString);
            $this->sth->setFetchMode(\PDO::FETCH_OBJ);
            $this->bindParam($this->sth);
        }
        $this->sth->execute();
        $this->result = $this->sth->fetchAll();
        $this->row = count($this->result);
        if (1 === $this->row) {
            foreach ($this->result[0] as $key => $value) {
                $table->{$key} = $value;
            }
        }
    }
{@inheritDoc}
@see \Seeren\Database\Dao\AbstractDao::execute()