Well, it depends on your configuration of course. Currently, a good way to manage your autoloading is using Composer.
My Doctrine.php has: include APPLICATION_ROOT . '/vendor/autoload.php'; while my composer.json contains all required configurations. You can also do: $loader = APPLICATION_ROOT . '/vendor/autoload.php'; And then configure some extra yourself. Make sure you check: http://getcomposer.org/doc/01-basic-usage.md#autoloading and some projects that use composer, like doctrine itself, have a look at their composer.json Cheers! On 20 December 2013 22:27, Raymond Gonzalez <[email protected]> wrote: > Hi. How do I do that? My doctrine.php file in others applications is the > same, but they work fine. Any idea? Thanks! > > > On Friday, December 20, 2013 2:57:19 PM UTC-5, Holtkamp wrote: > >> The tool you use to generate (doctrine.php?) seenms not to be aware of >> these classes. >> >> You probably have to configure your class autoloader in that file. >> >> Cheers! >> On Dec 20, 2013 8:40 PM, "Raymond Gonzalez" <[email protected]> wrote: >> >>> When I try to update my entities doing *orm:schema-tool:update --force*I >>> get the following error: >>> >>> Class 'Entities\Account' not found in 'Proxies/_CG_EntitiesAccount.php' >>>> on line 8 >>> >>> >>> I have tried the following: >>> >>> - *Delete the Proxies folde*r: When I do that, it works, the entities >>> update. I have my proxies to autogenerate so when they generate, it >>> stops working. >>> >>> - *Change the permissions of the Proxies folder*: still doesnt work. >>> >>> - *Tried in a different project in the same server*: I don't get the >>> same >>> problem >>> >>> I put that Entity as an example, but it's not a problem only with that >>> one. Any Proxy that is created would throw the error. This error only >>> affects when I'm trying to update the Entity. The Application and the >>> proxies work with no problem. Any idea of why is this? Thanks! >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "doctrine-user" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at http://groups.google.com/group/doctrine-user. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/groups/opt_out.
