Re: PHP database interface layer

From: Date: Thu, 22 Jul 2010 20:12:25 +0000
Subject: Re: PHP database interface layer
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-307103@lists.php.net to get a copy of this message
On Thu, Jul 22, 2010 at 1:14 PM, Marc Guay <marc.guay@gmail.com> wrote: > > i recommend propel > > http://www.propelorm.org/ > > Holy Moses that thing is a monster. It requires installing extra > libraries (Phing) in order to create an XML schema reverse-engineered > from my existing database. The code looks simple enough but that > installation is brutal. Any other suggestions? I'm thinking of > sticking with good ol' hand coding and a few helper classes. > > Marc > so you spend a little time up front to sav tons of coding time in the future... change your schema; re-generate the base layer.., o yeah, and it preserves custom logic too (upon regeneration), since that resides in sub classes. i used to hand write db wrapper classes but found it tedious and tended to result in a lack of cohesion through the classes themselves, not to mention being error prone. -nathan

« previous php.general (#307103) next »