How do I use ORM order by ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gundogduyakici
    Senior Member
    • Mar 2018
    • 165

    #1

    How do I use ORM order by ?

    Do I add order by this feature?

    Example Code:
    $userCareerStepsConditions = $entityManager->getEntity('CareerStepsConditions', $userCareerStepId);

    Like this
    $userCareerStepsConditions = $entityManager->getEntity('CareerStepsConditions', $userCareerStepId)->orderBy('columnName'); ?
    Last edited by gundogduyakici; 03-30-2018, 03:00 PM. Reason: orm
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    You can use order in repository, if you want to find entities and order them

    Comment

    • gundogduyakici
      Senior Member
      • Mar 2018
      • 165

      #3
      I saw it. But how do I get the parameter with where condition? In my example, I am attracted to certain ID. I need to add where.

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        explain all the logic

        Comment

        Working...