I just uploaded my slides from the talk Database abstraction with eZ Components. Thanks to the attendees for being so active and even borrowing me a notebook and an USB stick, since the beamer disliked my Thinkpad! :) The slides are CC by (see last slide for details).
If you liked this blog post or learned something, please consider using flattr to contribute back: .
Fields with bold names are mandatory.
Mats Lindh
Thanks for also presenting this talk at php|vikinger! We had to leave a bit too early, so I just have one small question:
Link to commentDid you ever consider adding more descriptive methods than 'quoteIdentifier' to provide more information to the 'from', 'leftJoin', etc. class of methods?
For example, to provide the context of a table name instead:
->leftJoin(
$db->tableName('books_authors'),
$query->expr->eq(
$db->tableNameAndColumn('books', 'id'),
..
)
)
I'd think that this would provide more context to the parent methods about just what kind of value these parameters have (and apply escaping as suitable).
Was this anything that was considered during the design phase, and in that case, what reasons were there to skip it?
Toby
Hi Mats!
Link to commentI don't see how this could significantly improve the current status. Could you take some more time to elaborate your idea an post it to the eZ Components development mailinglist, please?
TIA!
Toby