I have 3 properties: User
, Page
,Post
In the object Post
:
class Post
{
private $page;
private $subscribers;
}
In Page
enity:
class Page
{
private $members;
}
When a publication is published, I want all user members to Page
be installed as subscribers fromPost
$post->setSubscribers($post->getPage()->getMembers())
note : there Page
may be several thousand users, what's the best way to get better performance? Should I use my own query, database triggers, or procedures?
source
share