public function update(Group $group)
 {
     return $this->connection->prepareStatement('UPDATE groups SET type_id = :type_id, description = :description, ' . 'name = :name, contact_id = :contact_id, updated_at = :updated_at WHERE id = :id', ['id' => $group->getId(), 'type_id' => $group->getType()->getId(), 'description' => $group->getDescription(), 'name' => $group->getName(), 'contact_id' => $group->getContact()->getId(), 'updated_at' => (new \DateTime())->format('c')]);
 }
 /**
  * Update Group's contact.
  * 
  * @param \Wonderland\Application\Model\Group  $group
  * @param \Wonderland\Application\Model\Member $member
  *
  * @return int
  */
 public function updateContact(Group $group, Member $member)
 {
     $group->setContact($member);
     return $this->repository->update($group)->rowCount();
 }