@@ 266-278 (lines=13) @@ | ||
263 | /** |
|
264 | * @return mixed|array |
|
265 | */ |
|
266 | protected function getDbDataPrimaryValue() |
|
267 | { |
|
268 | if (is_array(static::$primaryDbPropertyKey)) { |
|
269 | $primaryValues = []; |
|
270 | foreach (static::$primaryDbPropertyKey as $propertyName) { |
|
271 | $primaryValues[] = $this->getDbValue($propertyName); |
|
272 | } |
|
273 | ||
274 | return $primaryValues; |
|
275 | } |
|
276 | ||
277 | return $this->getDbValue(static::$primaryDbPropertyKey); |
|
278 | } |
|
279 | ||
280 | /** |
|
281 | * @return mixed|array |
|
@@ 283-295 (lines=13) @@ | ||
280 | /** |
|
281 | * @return mixed|array |
|
282 | */ |
|
283 | private function getDbDataPrimaryDefaultValue() |
|
284 | { |
|
285 | if (is_array(static::$primaryDbPropertyKey)) { |
|
286 | $primaryValues = []; |
|
287 | foreach (static::$primaryDbPropertyKey as $propertyName) { |
|
288 | $primaryValues[] = $this->getDefaultDbPropertyValue($propertyName); |
|
289 | } |
|
290 | ||
291 | return $primaryValues; |
|
292 | } |
|
293 | ||
294 | return $this->getDefaultDbPropertyValue(static::$primaryDbPropertyKey); |
|
295 | } |
|
296 | ||
297 | /** |
|
298 | * @return bool |