Announcement

Collapse
No announcement yet.

Find don't work.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Find don't work.

    Hi,

    I am using version 4.2.4. and when I try use these:
    $account = $entityManager->getRepository('Account')->where(array( 'type' => 'Customer', ))->findOne(); doesn't function. It doesn't return account. I was tried different examples, and I am sure that elements are in database. Before, I was worked with 4.1.5. and in this version functioned. Thanks.

  • #2
    $this->getEntityManager()->...., not $entityManager->

    Comment


    • #3
      Yes, I was used that. I have $entityManager = $this->getEntityManager(), but neither forms works for me. Other idea? Any reason?

      Comment


      • #4
        I ran this code and it worked. Attach the file and write the path

        Comment

        Working...
        X