protected function populate() { parent::populate(); if (!$this->getId() && !is_numeric($this->arguments[0])) { $this->setFen($this->arguments[0]); $this->commit(); } }
public function populate() { parent::populate(); if (!$this->getId()) { $this->setMetadataKey($this->arguments[0]); $this->commit(); } }
protected function populate() { parent::populate(); if (!$this->getId()) { $this->setPlayerId($this->arguments[0]); $this->setCategory($this->arguments[1]); $this->commit(); } }