[geeklog-devel] Generator and DAO packages in pear.geeklog.net

Tony Bibbs tony at tonybibbs.com
Fri Jun 8 17:48:31 EDT 2007


The Geeklog_Generator and Geeklog_DAO packages are updated on pear.geeklog.net.  There's quite a bit of difference from the past:

Generator:
1) In addition to building default Propel model objects, cleaner, lighter data transfer objects (DTO) are built.  DTO's also are designed to be used directly with SOAP...this is done by making all class members public.  DTO's can be converted into their persistable Propel equivalents by calling a simple method on the DTO. Likewise, DTO's can be generated from Propel objects with a single method call.
2) Manager classes where all domain specific data access logic goes are generated.  This uses the Geeklog_DAO to stub out all CRUD logic
3) PHPUnit tests have been added 

DAO:
1) Provides the interface used to save/retrieve data in GL2.  The DAO can handle a combination of Propel model objects as well as named queries to do all data access.
2) Support for multiple named query files has been added, though, they all end up in the same compiled PHP array.
3) APC support allows the array of compiled queries to be loaded into memory for faster access. Should be used sparingly.
4) PHPUnit tests have been added.

Doesn't mean a whole lot to any of you other than Michael and my two GSoC students but feel free to ask questions.

--Tony





More information about the geeklog-devel mailing list