I am using the Zend Framework to build a web application. Based on a few recommendations, I chose Doctrine as my RDBM system.
;--------------------------------------------------- ; DOCTRINE CONFIGURATION ;--------------------------------------------------- resources.entityManager.connection.driver = "pdo_mysql" resources.entityManager.connection.host = "localhost" resources.entityManager.connection.dbname = "private" resources.entityManager.connection.user = "private" resources.entityManager.connection.password = "private" resources.entityManager.connection.entities = APPLICATION_PATH "/models" resources.entityManager.connection.proxies.location = APPLICATION_PATH "/models/Proxies" resources.entityManager.connection.proxies.ns = "Proxies" ; According to Doctrine manual, this should be true for ; development, and false for production resources.entityManager.connection.proxies.generate = true
The above configuration of Doctrine in Zend application.ini. Everything worked fine, but I wanted to know in advance how to create Proxies manually without using the CLI for several reasons. First of all, the Doctrine 2.0 doc mentions that Proxies auto-generation will cause performance problems. Secondly, I still do not understand how to use the Doctrine CLI, especially that I moved my project development to a common server box without access to the command line.
I created Doctrine objects manually by creating classes. How to manually generate Doctrine proxies in the same way?
source share