eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::deleteGroupAssignmentsForType PHP Méthode

deleteGroupAssignmentsForType() abstract public méthode

Deletes all group assignments for a Type.
abstract public deleteGroupAssignmentsForType ( mixed $typeId, integer $status )
$typeId mixed
$status integer
    public abstract function deleteGroupAssignmentsForType($typeId, $status);

Usage Example

 /**
  * Deletes all group assignments for a Type.
  *
  * @param mixed $typeId
  * @param int $status
  */
 public function deleteGroupAssignmentsForType($typeId, $status)
 {
     try {
         return $this->innerGateway->deleteGroupAssignmentsForType($typeId, $status);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }