- Quick MSSQL fix
This commit is contained in:
parent
e14a3670fc
commit
fc9b536eee
|
@ -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}";
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue