Doctrine gains symfony citizenship in 1.2
Today, Doctrine gained its citizenship in symfony 1.2. The sfDoctrinePlugin was linked via externals and is now officially bundled with symfony. If you've been around for a while, you'll know that this was highly anticipated and is a long time coming. To celebrate, I'll give a short little tutorial on how you can get started using Doctrine in symfony. Read below if you're interested.
all: doctrine: class: sfDoctrineDatabase param: dsn: mysql://[email protected]/dbname
--- User: columns: username: string(255) password: string(255)
--- User: User_1: username: jwage password: changeme
./symfony generate:app frontend
./symfony doctrine:build-all-reload frontend
Inspect database with DQL Query
./symfony doctrine:dql frontend "FROM User u" >> doctrine executing: "FROM User u" () >> doctrine id: '1' >> doctrine username: jwage >> doctrine password: changeme
Your data fixtures are loaded and your User model is ready to be used in your application. Couldn't be any easier!
What is to come?
- Official Documentation. symfony + Doctrine book.
- New features
- Doctrine training sessions by sensio
Thanks to everyone who adopted Doctrine early and stood by the project through thick and thin. Without your dedication this would not be possible today. So, a big thanks goes out to the community.
Doctrine gains symfony citizenship in 1.2 symfony.com/index.php/blog/doctrine-gains-symfony-citizenship-in-1-2Tweet this
Become a certified developer! Exams are online and available in all countries.Register Now
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.