protected function setValuesToObject($data) { $anns = self::getForDatabaseProperties(); $annCol = self::getAnnotationsForClass(); foreach ($data as $key => $value) { if (!array_key_exists($key, $anns)) { continue; } util\Type::convertTo($value, $anns[$key], $annCol); $this->{$key} = $value; } }
protected function setValuesToObject($data) { $anns = self::getForDatabaseProperties(); $annCol = self::getAnnotationsForClass(); foreach ($data as $key => $value) { util\Type::convertTo($value, $anns[$key]); $this->{$key} = $value; } }