Persistence Layer For PHP5

The latest releace candidate of DB_DataContainer now supports also PHP5. Official release will follow shortly if no bugs are found. Also to those who might be interested a port to PDO is under its way. The class will be called PDO_DataContainer.

While browsing through similar projects I found out something that I haven’t noticed before. Propel uses the same approach of having just one save() method instead of separate insert() and update() methods to persist the object into the database. I never understood the reason of having different method call for INSERT and UPDATE which is what most of the persistence layers and alike have. If the object has primary key set you know you have to do an UPDATE. If primary key is not set you know you have to do and INSERT.

Tagged with: Pear   Php  

Most read tags

Lazy Load   Ruby   AVR  
Electronics   JavaScript  
Jeditable   Maps   jQuery  
Facebook   HTML5   Lazy Load  
Estonia