- Some small bugfixes made

This commit is contained in:
mcndave committed 2023-07-09 12:38:52 -04:00
1 parent a4743b471c
commit 01ab6e82d4
6 files changed
+55 -8

No files matched your search

+6 -1
View File
@@ -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) ) {