You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.
linusnorton edited this page Dec 30, 2011
·
1 revision
Note: Doctrine2 must be installed.
Application Access
The Doctrine2 Entity Manager is provided through the dependency injection container:
/**
* @Request("index")
*/
public function run() {
$query = $this->dic->em->createQuery("SELECT * FROM xframe\demo\model\User");
}
It is not loaded until first use and it uses the database settings in the configuration file.
CLI Access
If you cd to the root directory of your project the doctrine cli program will detect the cli-config.php bootstrap and use the xFrame Entity Manager instance.
$ cd /var/www/example.org
$ doctrine orm:schema-tool:create