Property | Type | Description | |
---|---|---|---|
$em | Doctrine\ORM\EntityManager | ||
$repository | Newscoop\Subscription\SubscriptionRepository |
Method | Description | |
---|---|---|
__construct ( |
||
delete ( $id ) : void | Delete subscription | |
find ( integer $id ) : Newscoop\Subscription\Subscription | Find subscription by given id | |
findByUser ( |
Find subscriptions by user | |
save ( array $values, |
Save subscription |
public findByUser ( |
||
$user | ||
return | array |
protected Doctrine\ORM\EntityManager $em | ||
return | Doctrine\ORM\EntityManager |