Hi, I've finally found the issue of this one. It seems to be a bug of PHP:
http://stackoverflow.com/questions/1495600/reflectionclassgetproperty-for-a-private-property-in-an-inhertited-class http://bugs.php.net/bug.php?id=47808 I'm using Ubuntu with PHP 5.3.3. What should we do with this one? it's a very annoying bug while trying to update an ACL with Field ACEs. Changing the visibility of properties ("id" in this case) on the Entry class from private to protected fixes the issue. I don't know if there's another case like this one on other properties. 2011/3/30 Gustavo Adrian <[email protected]> > Hi all, > > I had random exceptions about serialization with the Entry class. I've > noticed all its properties are private. Also, FieldEntry extends from Entry, > so when I want to do something like this to delete a FieldEntry: > > $classFieldACEs = $acl->getClassFieldACEs( $field ); > > // $classFieldACE is the ACE I want to delete > foreach ( $classFieldACEs as $index => $classFieldACE ) > { > if ( $ace->getId() === $classFieldACE->getId() ) > { > $acl->deleteClassACE( $index ); > > break; > } > } > > Here I get an "Property > Symfony\Component\Security\Acl\Domain\FieldEntry::$id does not exist" > exception. > > Should we change the visibility of these properties to protected? > > > > Thanks in advance! > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
