Select Record

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krishnapriya
    Senior Member
    • Aug 2017
    • 209

    Select Record

    Hi,

    How can I select a record, giving teamsIds as condition in the below code?

    $list = $this->getEntityManager()->getRepository('Test')->where(array(

    ))->findOne();

    Please help.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    $team = $this->getEntityManager()->getEntity('Team', $targetTeamId);
    $userList = $this->getEntityManager()->getRepository('Team')->findRelated($team, 'users', $userSelectParams);

    Comment

    • krishnapriya
      Senior Member
      • Aug 2017
      • 209

      #3
      Thanks Tanya.

      Comment

      Working...