mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 05:58:42 +00:00
Add getter
This commit is contained in:
parent
39103b5ec6
commit
35d47c7a53
|
|
@ -2751,7 +2751,7 @@ class DataMapperAbstract implements DataMapperInterface
|
||||||
*/
|
*/
|
||||||
public static function getCreatedAt() : string
|
public static function getCreatedAt() : string
|
||||||
{
|
{
|
||||||
return static::$createdAt;
|
return !empty(static::$createdAt) ? static::$createdAt : static::$primaryField;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user