@@ -60,7 +60,7 @@ public function createAcl(ObjectIdentityInterface $oid)
60
60
$ this ->createObjectIdentity ($ oid );
61
61
62
62
$ pk = $ this ->retrieveObjectIdentityPrimaryKey ($ oid );
63
- $ this ->connection ->executeUpdate ($ this ->getInsertObjectIdentityRelationSql ($ pk , $ pk ));
63
+ $ this ->connection ->executeStatement ($ this ->getInsertObjectIdentityRelationSql ($ pk , $ pk ));
64
64
65
65
$ this ->connection ->commit ();
66
66
} catch (\Exception $ e ) {
@@ -117,7 +117,7 @@ public function deleteAcl(ObjectIdentityInterface $oid)
117
117
*/
118
118
public function deleteSecurityIdentity (SecurityIdentityInterface $ sid )
119
119
{
120
- $ this ->connection ->executeUpdate ($ this ->getDeleteSecurityIdentityIdSql ($ sid ));
120
+ $ this ->connection ->executeStatement ($ this ->getDeleteSecurityIdentityIdSql ($ sid ));
121
121
}
122
122
123
123
/**
@@ -332,7 +332,7 @@ public function updateAcl(MutableAclInterface $acl)
332
332
333
333
// persist any changes to the acl_object_identities table
334
334
if (\count ($ sets ) > 0 ) {
335
- $ this ->connection ->executeUpdate ($ this ->getUpdateObjectIdentitySql ($ acl ->getId (), $ sets ));
335
+ $ this ->connection ->executeStatement ($ this ->getUpdateObjectIdentitySql ($ acl ->getId (), $ sets ));
336
336
}
337
337
338
338
$ this ->connection ->commit ();
@@ -370,7 +370,7 @@ public function updateAcl(MutableAclInterface $acl)
370
370
*/
371
371
public function updateUserSecurityIdentity (UserSecurityIdentity $ usid , $ oldUsername )
372
372
{
373
- $ this ->connection ->executeUpdate ($ this ->getUpdateUserSecurityIdentitySql ($ usid , $ oldUsername ));
373
+ $ this ->connection ->executeStatement ($ this ->getUpdateUserSecurityIdentitySql ($ usid , $ oldUsername ));
374
374
}
375
375
376
376
/**
@@ -736,7 +736,7 @@ private function createObjectIdentity(ObjectIdentityInterface $oid)
736
736
{
737
737
$ classId = $ this ->createOrRetrieveClassId ($ oid ->getType ());
738
738
739
- $ this ->connection ->executeUpdate ($ this ->getInsertObjectIdentitySql ($ oid ->getIdentifier (), $ classId , true ));
739
+ $ this ->connection ->executeStatement ($ this ->getInsertObjectIdentitySql ($ oid ->getIdentifier (), $ classId , true ));
740
740
}
741
741
742
742
/**
@@ -750,13 +750,13 @@ private function createObjectIdentity(ObjectIdentityInterface $oid)
750
750
*/
751
751
private function createOrRetrieveClassId ($ classType )
752
752
{
753
- if (false !== $ id = $ this ->connection ->executeQuery ($ this ->getSelectClassIdSql ($ classType ))->fetchColumn ()) {
753
+ if (false !== $ id = $ this ->connection ->executeQuery ($ this ->getSelectClassIdSql ($ classType ))->fetchOne ()) {
754
754
return $ id ;
755
755
}
756
756
757
- $ this ->connection ->executeUpdate ($ this ->getInsertClassSql ($ classType ));
757
+ $ this ->connection ->executeStatement ($ this ->getInsertClassSql ($ classType ));
758
758
759
- return $ this ->connection ->executeQuery ($ this ->getSelectClassIdSql ($ classType ))->fetchColumn ();
759
+ return $ this ->connection ->executeQuery ($ this ->getSelectClassIdSql ($ classType ))->fetchOne ();
760
760
}
761
761
762
762
/**
@@ -769,13 +769,13 @@ private function createOrRetrieveClassId($classType)
769
769
*/
770
770
private function createOrRetrieveSecurityIdentityId (SecurityIdentityInterface $ sid )
771
771
{
772
- if (false !== $ id = $ this ->connection ->executeQuery ($ this ->getSelectSecurityIdentityIdSql ($ sid ))->fetchColumn ()) {
772
+ if (false !== $ id = $ this ->connection ->executeQuery ($ this ->getSelectSecurityIdentityIdSql ($ sid ))->fetchOne ()) {
773
773
return $ id ;
774
774
}
775
775
776
- $ this ->connection ->executeUpdate ($ this ->getInsertSecurityIdentitySql ($ sid ));
776
+ $ this ->connection ->executeStatement ($ this ->getInsertSecurityIdentitySql ($ sid ));
777
777
778
- return $ this ->connection ->executeQuery ($ this ->getSelectSecurityIdentityIdSql ($ sid ))->fetchColumn ();
778
+ return $ this ->connection ->executeQuery ($ this ->getSelectSecurityIdentityIdSql ($ sid ))->fetchOne ();
779
779
}
780
780
781
781
/**
@@ -785,7 +785,7 @@ private function createOrRetrieveSecurityIdentityId(SecurityIdentityInterface $s
785
785
*/
786
786
private function deleteAccessControlEntries ($ oidPK )
787
787
{
788
- $ this ->connection ->executeUpdate ($ this ->getDeleteAccessControlEntriesSql ($ oidPK ));
788
+ $ this ->connection ->executeStatement ($ this ->getDeleteAccessControlEntriesSql ($ oidPK ));
789
789
}
790
790
791
791
/**
@@ -795,7 +795,7 @@ private function deleteAccessControlEntries($oidPK)
795
795
*/
796
796
private function deleteObjectIdentity ($ pk )
797
797
{
798
- $ this ->connection ->executeUpdate ($ this ->getDeleteObjectIdentitySql ($ pk ));
798
+ $ this ->connection ->executeStatement ($ this ->getDeleteObjectIdentitySql ($ pk ));
799
799
}
800
800
801
801
/**
@@ -805,7 +805,7 @@ private function deleteObjectIdentity($pk)
805
805
*/
806
806
private function deleteObjectIdentityRelations ($ pk )
807
807
{
808
- $ this ->connection ->executeUpdate ($ this ->getDeleteObjectIdentityRelationsSql ($ pk ));
808
+ $ this ->connection ->executeStatement ($ this ->getDeleteObjectIdentityRelationsSql ($ pk ));
809
809
}
810
810
811
811
/**
@@ -814,12 +814,12 @@ private function deleteObjectIdentityRelations($pk)
814
814
private function regenerateAncestorRelations (AclInterface $ acl )
815
815
{
816
816
$ pk = $ acl ->getId ();
817
- $ this ->connection ->executeUpdate ($ this ->getDeleteObjectIdentityRelationsSql ($ pk ));
818
- $ this ->connection ->executeUpdate ($ this ->getInsertObjectIdentityRelationSql ($ pk , $ pk ));
817
+ $ this ->connection ->executeStatement ($ this ->getDeleteObjectIdentityRelationsSql ($ pk ));
818
+ $ this ->connection ->executeStatement ($ this ->getInsertObjectIdentityRelationSql ($ pk , $ pk ));
819
819
820
820
$ parentAcl = $ acl ->getParentAcl ();
821
821
while (null !== $ parentAcl ) {
822
- $ this ->connection ->executeUpdate ($ this ->getInsertObjectIdentityRelationSql ($ pk , $ parentAcl ->getId ()));
822
+ $ this ->connection ->executeStatement ($ this ->getInsertObjectIdentityRelationSql ($ pk , $ parentAcl ->getId ()));
823
823
824
824
$ parentAcl = $ parentAcl ->getParentAcl ();
825
825
}
@@ -854,8 +854,8 @@ private function updateNewFieldAceProperty($name, array $changes)
854
854
855
855
$ objectIdentityId = 'classFieldAces ' === $ name ? null : $ ace ->getAcl ()->getId ();
856
856
857
- $ this ->connection ->executeUpdate ($ this ->getInsertAccessControlEntrySql ($ classId , $ objectIdentityId , $ field , $ i , $ sid , $ ace ->getStrategy (), $ ace ->getMask (), $ ace ->isGranting (), $ ace ->isAuditSuccess (), $ ace ->isAuditFailure ()));
858
- $ aceId = $ this ->connection ->executeQuery ($ this ->getSelectAccessControlEntryIdSql ($ classId , $ objectIdentityId , $ field , $ i ))->fetchColumn ();
857
+ $ this ->connection ->executeStatement ($ this ->getInsertAccessControlEntrySql ($ classId , $ objectIdentityId , $ field , $ i , $ sid , $ ace ->getStrategy (), $ ace ->getMask (), $ ace ->isGranting (), $ ace ->isAuditSuccess (), $ ace ->isAuditFailure ()));
858
+ $ aceId = $ this ->connection ->executeQuery ($ this ->getSelectAccessControlEntryIdSql ($ classId , $ objectIdentityId , $ field , $ i ))->fetchOne ();
859
859
$ this ->loadedAces [$ aceId ] = $ ace ;
860
860
861
861
$ aceIdProperty = new \ReflectionProperty ('Symfony\Component\Security\Acl\Domain\Entry ' , 'id ' );
@@ -889,7 +889,7 @@ private function updateOldFieldAceProperty($name, array $changes)
889
889
$ ace = $ old [$ i ];
890
890
891
891
if (!isset ($ currentIds [$ ace ->getId ()])) {
892
- $ this ->connection ->executeUpdate ($ this ->getDeleteAccessControlEntrySql ($ ace ->getId ()));
892
+ $ this ->connection ->executeStatement ($ this ->getDeleteAccessControlEntrySql ($ ace ->getId ()));
893
893
unset($ this ->loadedAces [$ ace ->getId ()]);
894
894
}
895
895
}
@@ -926,8 +926,8 @@ private function updateNewAceProperty($name, array $changes)
926
926
927
927
$ objectIdentityId = 'classAces ' === $ name ? null : $ ace ->getAcl ()->getId ();
928
928
929
- $ this ->connection ->executeUpdate ($ this ->getInsertAccessControlEntrySql ($ classId , $ objectIdentityId , null , $ i , $ sid , $ ace ->getStrategy (), $ ace ->getMask (), $ ace ->isGranting (), $ ace ->isAuditSuccess (), $ ace ->isAuditFailure ()));
930
- $ aceId = $ this ->connection ->executeQuery ($ this ->getSelectAccessControlEntryIdSql ($ classId , $ objectIdentityId , null , $ i ))->fetchColumn ();
929
+ $ this ->connection ->executeStatement ($ this ->getInsertAccessControlEntrySql ($ classId , $ objectIdentityId , null , $ i , $ sid , $ ace ->getStrategy (), $ ace ->getMask (), $ ace ->isGranting (), $ ace ->isAuditSuccess (), $ ace ->isAuditFailure ()));
930
+ $ aceId = $ this ->connection ->executeQuery ($ this ->getSelectAccessControlEntryIdSql ($ classId , $ objectIdentityId , null , $ i ))->fetchOne ();
931
931
$ this ->loadedAces [$ aceId ] = $ ace ;
932
932
933
933
$ aceIdProperty = new \ReflectionProperty ($ ace , 'id ' );
@@ -959,7 +959,7 @@ private function updateOldAceProperty($name, array $changes)
959
959
$ ace = $ old [$ i ];
960
960
961
961
if (!isset ($ currentIds [$ ace ->getId ()])) {
962
- $ this ->connection ->executeUpdate ($ this ->getDeleteAccessControlEntrySql ($ ace ->getId ()));
962
+ $ this ->connection ->executeStatement ($ this ->getDeleteAccessControlEntrySql ($ ace ->getId ()));
963
963
unset($ this ->loadedAces [$ ace ->getId ()]);
964
964
}
965
965
}
@@ -1005,6 +1005,6 @@ private function updateAce(\SplObjectStorage $aces, $ace)
1005
1005
$ sets [] = sprintf ('audit_failure = %s ' , $ this ->connection ->getDatabasePlatform ()->convertBooleans ($ propertyChanges ['auditFailure ' ][1 ]));
1006
1006
}
1007
1007
1008
- $ this ->connection ->executeUpdate ($ this ->getUpdateAccessControlEntrySql ($ ace ->getId (), $ sets ));
1008
+ $ this ->connection ->executeStatement ($ this ->getUpdateAccessControlEntrySql ($ ace ->getId (), $ sets ));
1009
1009
}
1010
1010
}
0 commit comments