/**
  * Add an entity to the repository.
  *
  * @param Entity $entity The new entity.
  *
  * @return void
  *
  * @throws \InvalidArgumentException If an invalid entity type is given.
  */
 public function add($entity)
 {
     Assertion::isInstanceOf($entity, 'ContaoCommunityAlliance\\DcGeneral\\Data\\ModelInterface', 'Entity repository requires an instance of the ModelInterface');
     $this->provider->save($entity);
 }