public function removeWorkflowProfiles(array $workflowProfileIds)
    {
        array_walk($workflowProfileIds, function(&$workflowProfileId) {$workflowProfileId = new \MongoId($workflowProfileId);});

        $qb = $this->createQueryBuilder();
        $qb->remove()
            ->field('id')->in($workflowProfileIds)
            ->getQuery()
            ->execute();
    }
public function removeWorkflowProfiles(array $workflowProfileIds)
    {
        array_walk($workflowProfileIds, function(&$workflowProfileId) {$workflowProfileId = new \MongoId($workflowProfileId);});

        $qb = $this->createQueryBuilder();
        $qb->remove()
            ->field('id')->in($workflowProfileIds)
            ->getQuery()
            ->execute();
    }
@param array $workflowProfileIds

@throws \Doctrine\ODM\MongoDB\MongoDBException