Compare commits

...

2 Commits

Author SHA1 Message Date
Dave Mc Nicoll
8507283d27 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2022-06-28 12:45:25 +00:00
Dave Mc Nicoll
fc9b536eee - Quick MSSQL fix 2022-06-28 12:37:02 +00:00

View File

@ -291,6 +291,7 @@ class Repository
public function generateDatasetDiff(object $entity, bool $oldValues = false) : array
{
$array = array_change_key_case($entity->toArray());
$dataset = array_change_key_case($entity->entityGetDataset(false, true));
return array_diff_assoc($oldValues ? $dataset : $array , $oldValues ? $array : $dataset );
@ -617,7 +618,7 @@ class Repository
});
}
else {
throw new \Exception("You referenced field `$item` which do not exist or do not contain a valid @Join annotation.");
throw new \Exception("Referenced field `$item` which do not exist or do not contain a valid @Join annotation.");
}
}