/** * Sets attributes from SQL result row to object * * @param array $row data from DB * * @return void */ protected function setAttributes(array $row) { parent::setAttributes($row); if (isset($row['blueprintTypeID'])) { $this->producedFromBlueprintID = (int) $row['blueprintTypeID']; } }
/** * Sets attributes from SQL result row to object * * @param array $row data from DB * * @return void */ protected function setAttributes(array $row) { parent::setAttributes($row); $this->productId = (int) $row['productTypeID']; $this->maxProductionLimit = (int) $row['maxProductionLimit']; }