Trying to run this script:

        $products = $this->getEntityManager()
                           ->getRepository('Bundle\HelloBundle\Entity
\Product')
                           ->findAll();

But keep getting this error:

Fatal error: Class 'Proxies\BundleHelloBundleEntityCategoryProxy' not
found in ../src/vendor/doctrine/lib/Doctrine/ORM/Proxy/
ProxyFactory.php on line 92

In the Product entity, I defined the category:

    /**
     * @var Category
     * @OneToOne(targetEntity="Category")
     * @JoinColumn(name="category_id", referencedColumnName="id")
     */
    private $category;

Any idea why this is happening?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to