filterByClassId($aclClass->getId()) ->filterByIdentifier($objectIdentity->getIdentifier()) ; return $this; } /** * Return an ObjectIdentity object belonging to the given ACL related ObjectIdentity. * * @param \Symfony\Component\Security\Acl\Model\ObjectIdentityInterface $objectIdentity * @param ConnectionInterface $con * * @return \Propel\Bundle\PropelBundle\Model\Acl\ObjectIdentity */ public function findOneByAclObjectIdentity(ObjectIdentityInterface $objectIdentity, ConnectionInterface $con = null) { return $this ->filterByAclObjectIdentity($objectIdentity, $con) ->findOne($con) ; } /** * Return all children of the given object identity. * * @param \Propel\Bundle\PropelBundle\Model\Acl\ObjectIdentity $objectIdentity * @param ConnectionInterface $con * * @return \PropelObjectCollection */ public function findChildren(ObjectIdentity $objectIdentity, ConnectionInterface $con = null) { return $this ->filterByObjectIdentityRelatedByParentObjectIdentityId($objectIdentity) ->find($con) ; } /** * Return all children and grand-children of the given object identity. * * @param \Propel\Bundle\PropelBundle\Model\Acl\ObjectIdentity $objectIdentity * @param ConnectionInterface $con * * @return \PropelObjectCollection */ public function findGrandChildren(ObjectIdentity $objectIdentity, ConnectionInterface $con = null) { return $this ->useObjectIdentityAncestorRelatedByObjectIdentityIdQuery() ->filterByObjectIdentityRelatedByAncestorId($objectIdentity) ->filterByObjectIdentityRelatedByObjectIdentityId($objectIdentity, Criteria::NOT_EQUAL) ->endUse() ->find($con) ; } /** * Return all ancestors of the given object identity. * * @param ObjectIdentity $objectIdentity * @param ConnectionInterface $con * * @return \PropelObjectCollection */ public function findAncestors(ObjectIdentity $objectIdentity, ConnectionInterface $con = null) { return $this ->useObjectIdentityAncestorRelatedByAncestorIdQuery() ->filterByObjectIdentityRelatedByObjectIdentityId($objectIdentity) ->filterByObjectIdentityRelatedByAncestorId($objectIdentity, Criteria::NOT_EQUAL) ->endUse() ->find($con) ; } }