- Moved withJoin() method of repository into a trait

This commit is contained in:
Dave Mc Nicoll committed 2026-10-22 17:16:36 +00:00
1 parent caf5bd9664
commit c417b00ed4
10 files changed
+205 -118

No files matched your search

+14 -1
View File
@@ -93,7 +93,7 @@ trait EntityTrait {
$this->$field = $value;
}
$this->eventExecute(Event\Entity\DatasetFill::class, $this);
$this->eventExecute(Event\Entity\DatasetFill::class, $generator, $this);
$this->entityDatasetUnmatchedFields = $generator->getReturn();
@@ -263,6 +263,19 @@ trait EntityTrait {
}
}
#[Ignore]
public function __debugInfo() : array
{
try {
return $this->toArray(true) ;
}
catch (\Throwable $ex) {
return $this->entityGetDataset(false, true);
}
return [ "An error occured trying to export this dataset..." ];
}
#[Ignore]
public function jsonSerialize() : mixed
{