- Quick MSSQL fix

This commit is contained in:
Dave Mc Nicoll 2022-06-28 12:37:02 +00:00
parent e14a3670fc
commit fc9b536eee
2 changed files with 5 additions and 1 deletions

View File

@ -100,6 +100,9 @@ class MsSQL implements AdapterInterface {
if ( $this->encrypt ?? false ) {
$parts[] = "Encrypt=1";
}
else {
$parts[] = "Encrypt=0";
}
if ( $this->failoverPartner ?? false ) {
$parts[] = "Failover_Partner={$this->failoverPartner}";

View File

@ -287,6 +287,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 );
@ -611,7 +612,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.");
}
}