All video tutorials
- Data retrieval
- Data storage
- Model definition (M from MVC)
Doctrine 2 versus NotORM
Part 2: Data storage
These tutorials show the same demo application created in Doctrine 2 and in NotORM. You can play one whole video and then the other or you can switch playing both videos (watch for checkpoints).
Doctrine 2 video tutorial
Download source codes (versioned in Git)
NotORM video tutorial
Download source codes (versioned in Git)
Doctrine 2 WTFs
- One select for each insert (can be solved by using
getReference
instead of find
)
- No error for wrong reference (can be solved by using
getReference
instead of find
)
- No error for non-existing fields (can be solved by defining setters)
- No error for invalid data (can be solved by using strict mode in MySQL but not in SQLite)
- Manual locking and transaction handling for incrementing a column (can by bypassed by using DQL)
- One query for each loop iteration (can be bypassed by using DQL)
- Auto-generated code for proxy
Author: Jakub Vrána. It is allowed to re-publish only both videos together.