The documentation lacks some details about ACL. It’ simple as invoking createAcl on the domain object after persisting it. Then putting a mask with insertObjectAce on the user/object.
But how internally Symfony2 manage ACL? Are some extra columns added to the table?
$entityManager = $this->get('doctrine.orm.default_entity_manager');
$entityManager->persist($comment);
$entityManager->flush();
// creating the ACL
$aclProvider = $this->get('security.acl.provider');
$objectIdentity = ObjectIdentity::fromDomainObject($comment);
$acl = $aclProvider->createAcl($objectIdentity);
// retrieving the security identity of the currently logged-in user
$securityContext = $this->get('security.context');
$user = $securityContext->getToken()->getUser();
$securityIdentity = UserSecurityIdentity::fromAccount($user);
// grant owner access
$acl->insertObjectAce($securityIdentity, MaskBuilder::MASK_OWNER);
$aclProvider->updateAcl($acl);
It creates bunch of new tables,
in fact this chapter explains to you a lot of things about how ACL are managed internally by Symfony2 :
http://symfony.com/doc/current/cookbook/security/acl_advanced.html