News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ProDevTips.com:
CRUD with PHP Doctrine
August 25, 2008 @ 11:19:37

In a fourth part of their series looking at using Doctrine in PHP, the ProDevTips blog moves on to implementing it in a typical CRUD interface.

They create the links between the tables (two hasOne relationships), a search() method to find the destinations for a user, a sorting method to multisort based on the subkeys of the value passed in and the methods for updating the information already in the database.

That's it for now, feel free to download this tiny Smarty and Doctrine framework. Note that for this to work you have to put Smarty and Doctrine in the lib folder. There is a login interface involved, just click submit there without entering anything. There is also an SQL file in the trip_selector folder if you want to try this out with some test data (same as in the picture above).
0 comments voice your opinion now!
doctrine crud relationship update create retrieve delete


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: PHP Security Tip #16 (Keep Frameworks Up-to-Date)

Icant.co.uk: How to create thumbnails with PHP and gd

DevShed: Inserting, Updating and Deleting Database Rows with Code Igniter

Content with Style: Getting phpunit to work with MAMP

Doctrine Blog: Doctrine 1.0.8 and 1.1.0-RC2 Released


Community Events

Don't see your event here?
Let us know!


example interview introduction php7 series video api opinion voicesoftheelephpant version language community unittest list laravel5 release laravel framework library podcast

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework