Made group creation possible (open groups only, yet)

This commit is contained in:
Polonkai Gergely
2012-07-17 21:37:54 +02:00
parent cab47219b3
commit 9f49b70d67
237 changed files with 3054 additions and 254 deletions

View File

@@ -15,6 +15,14 @@ use KekRozsak\SecurityBundle\Entity\User;
*/
class UserGroupMembership
{
public function __construct(\KekRozsak\SecurityBundle\Entity\User $user, \KekRozsak\FrontBundle\Entity\Group $group)
{
$this->setUser($user);
$this->setGroup($group);
$this->setMembershipRequestedAt(new \DateTime('now'));
$this->setMembershipAcceptedAt(new \DateTime('now'));
}
/**
* @var integer $id
* @ORM\Id