You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have some entities with properties relations to a second node :
Class MainNode (
/**
* @OGM\ManyToOne(relation="linkSecondNode")
*/
protected $secondNode;
/**
*
* @return mixed
*/
public function getSecondNode() {
return $this->secondNode;
}
When I make a query to return a list of MainNodes, and then use the getSecondNode method, I have poor performances. I assume that's because it need a query to get the secondNode data the first time we use the method.
In doctrine you can add a "fetch" annotations to define what need to be return by query.
Is there a way to make something like that, in order to get all data need in one query ?
Thanks for your time.
The text was updated successfully, but these errors were encountered:
Hi,
I have some entities with properties relations to a second node :
When I make a query to return a list of MainNodes, and then use the getSecondNode method, I have poor performances. I assume that's because it need a query to get the secondNode data the first time we use the method.
In doctrine you can add a "fetch" annotations to define what need to be return by query.
Is there a way to make something like that, in order to get all data need in one query ?
Thanks for your time.
The text was updated successfully, but these errors were encountered: