Pimcore\Model\Object\KeyValue\TranslatorConfig\Dao::getById PHP Метод

getById() публичный Метод

Get the data for the object from database for the given id, or from the ID which is set in the object
public getById ( integer $id = null ) : void
$id integer
Результат void
    public function getById($id = null)
    {
        if ($id != null) {
            $this->model->setId($id);
        }
        $data = $this->db->fetchRow("SELECT * FROM " . self::TABLE_NAME_TRANSLATOR . " WHERE id = ?", $this->model->getId());
        $this->assignVariablesToModel($data);
    }