diff options
author | Geoffrey Tran <geoffrey.tran@gmail.com> | 2011-07-15 12:41:15 -0500 |
---|---|---|
committer | Geoffrey Tran <geoffrey.tran@gmail.com> | 2011-07-15 12:41:15 -0500 |
commit | 4f02e874586a07385cf2120c5fbe93c79f9b1a0f (patch) | |
tree | 9d542f28dc3344e188b319597e2aabca3c6c6374 | |
parent | b1b06408ebac0bb6eaad3d9e729020727b7f65d6 (diff) | |
download | symfony-security-4f02e874586a07385cf2120c5fbe93c79f9b1a0f.zip symfony-security-4f02e874586a07385cf2120c5fbe93c79f9b1a0f.tar.gz symfony-security-4f02e874586a07385cf2120c5fbe93c79f9b1a0f.tar.bz2 |
DoctrineAclCache unserialize sets the acl to the wrong field
Upon unserialize of the acl, the acl is currently set to the id field which should be a string. Currently it passes the acl object into the id field which causes the following error.
Warning: Illegal offset type in isset or empty in Symfony/Component/Security/Acl/Dbal/AclProvider.php line 404
-rw-r--r-- | Acl/Domain/DoctrineAclCache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Acl/Domain/DoctrineAclCache.php b/Acl/Domain/DoctrineAclCache.php index 64241e2..21e5149 100644 --- a/Acl/Domain/DoctrineAclCache.php +++ b/Acl/Domain/DoctrineAclCache.php @@ -165,7 +165,7 @@ class DoctrineAclCache implements AclCacheInterface $reflectionProperty->setValue($acl, $this->permissionGrantingStrategy); $reflectionProperty->setAccessible(false); - $aceAclProperty = new \ReflectionProperty('Symfony\Component\Security\Acl\Domain\Entry', 'id'); + $aceAclProperty = new \ReflectionProperty('Symfony\Component\Security\Acl\Domain\Entry', 'acl'); $aceAclProperty->setAccessible(true); foreach ($acl->getObjectAces() as $ace) { |