- Some small bugfixes made
This commit is contained in:
1 parent
a4743b471c
commit
01ab6e82d4
6 files changed
+55
-8
No files matched your search
@@ -4,7 +4,7 @@ namespace Ulmus;
|
||||
|
||||
use Generator;
|
||||
|
||||
class EntityCollection extends \ArrayObject {
|
||||
class EntityCollection extends \ArrayObject implements \JsonSerializable {
|
||||
|
||||
public ? string $entityClass = null;
|
||||
|
||||
@@ -340,6 +340,11 @@ class EntityCollection extends \ArrayObject {
|
||||
return ( new $className() )->fromArray($dataset);
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
||||
public function append($value) : void
|
||||
{
|
||||
if ( is_array($value) ) {
|
||||
|
||||
Reference in new issue
Block a user