erdiko / doctrine
Doctrine database ORM
Installs: 1 599
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=5.4.0
- doctrine/orm: 2.4.*
- erdiko/core: ^1.0.0
This package is not auto-updated.
Last update: 2024-12-11 20:34:35 UTC
README
Use the Doctrine ORM in your framework. This package will install Doctrine and include a way to configure your db credentials.
Install
To use doctrine in your Erdiko project simply run
composer require erdiko/doctrine
Then update /app/config/shared/database.json with the specifics of your database
You're all set! Create some entities/models and you'll be working with Doctrine
If you don't have a config file called /app/config/shared/database.json then copy the one in this package into that location (located at /vendor/erdiko/doctrine/app/config/shared/database.json)
Extras
We added some sample code of how to use Doctrine. It includes a sample entity and model to query the entity. Code is located at /vendor/erdiko/doctrine/app/
It's a great way to get going, but the best way to learn how to use doctrine is to visit the site and read the docs.