nm bugfix + pagination default order params
This commit is contained in:
@@ -22,7 +22,7 @@ abstract class DatabaseEntity implements ArrayAccess, JsonSerializable {
|
||||
|
||||
private static array $handlers = [];
|
||||
protected ?int $id;
|
||||
#[Transient] protected array $customData = [];
|
||||
#[Transient] public array $customData = [];
|
||||
|
||||
public function __construct(?int $id = null) {
|
||||
$this->id = $id;
|
||||
@@ -101,6 +101,10 @@ abstract class DatabaseEntity implements ArrayAccess, JsonSerializable {
|
||||
}
|
||||
}
|
||||
|
||||
if ($propertyNames === null) {
|
||||
$jsonArray = array_merge($jsonArray, $this->customData);
|
||||
}
|
||||
|
||||
return $jsonArray;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user