Doctrine 2: Enterprise Persistence Layer for PHP
by Jonathan Wage
- 20,117 views
Doctrine 2 is an object relational mapper (ORM) for PHP 5.3+ that sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a ...
Doctrine 2 is an object relational mapper (ORM) for PHP 5.3+ that sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL. This provides developers with a powerful alternative to SQL that maintains flexibility without requiring unnecessary code duplication.
Accessibility
Categories
Upload Details
Uploaded via SlideShare as Adobe PDF
Usage Rights
© All Rights Reserved
Statistics
- Likes
- 35
- Downloads
- 397
- Comments
- 3
- Embed Views
- Views on SlideShare
- 15,815
- Total Views
- 20,117
Now I'm little puzzled with one thing. On slide 31 you have your User class, and then on slide 35 you create an instance of the User class and then call the setUsername method.
Now what totally gets me, is how that could work. The user class isn't extended and there is no PHP magic methods to handle a call to setUsername.
Am I missing something here, or is there some very clever coding in Doctrine 2.0 to handle the setUsername? 3 years ago