- Moved withJoin() method of repository into a trait
This commit is contained in:
1 parent
caf5bd9664
commit
c417b00ed4
10 files changed
+205
-118
No files matched your search
+14
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user