EcommerceBundle/Entity/Repository/AddressRepository.php
public function removeForBillingToAllAddresses($actorId)
    {
        $qb = $this->getQueryBuilder()
            ->update()
            ->set('a.forBilling', 0)
            ->where('a.actor = :actor')
            ->setParameter('actor', $actorId);

        $qb->getQuery()->execute();
    }
public function removeForBillingToAllAddresses($actorId)
    {
        $qb = $this->getQueryBuilder()
            ->update()
            ->set('a.forBilling', 0)
            ->where('a.actor = :actor')
            ->setParameter('actor', $actorId);

        $qb->getQuery()->execute();
    }
public function removeForBillingToAllAddresses ( $ actorId ) { $ qb = $ this -> getQueryBuilder ( ) -> update ( ) -> set ( 'a.forBilling' , 0 ) -> where ( 'a.actor = :actor' ) -> setParameter ( 'actor' , $ actorId ) ; $ qb -> getQuery ( ) -> execute ( ) ; }
Remove the forBilling field to all addresses of the given actor

@param integer $actorId
Remove the forBilling field to all addresses of the given actor