RSS feed - Using POG with Flex
- Optimizing your web application
- Regenerating large objects
- PHP4 or PHP5
- New and Improved
- Evolution of a cube
- POG Museum
- POG 3.0 alpha
- Initial Performance results Part 2
- Initial performance results
- Proposal: POG 3.0 object model
- Suggest a feature
- A new year, A new POG release
- Many-Many relations
- POG 2.5 Released
- POG 2.5 beta
- Automatic table alignment
- New version: 2.1.2 released
- RSS should work well now
- RSS feed glitches
- What's new in 2.1.0
- PHP Objects 2.1.0 (preview)
- PHP Object relations FAQ
- PHP Object Relations
- Searching base64 encoded text
- How to debug POG-generated objects
- POG UI Tips
- Featuring Of Interest links
- PHP CRUD
- POG 2.0.1: A better code generator
- A look at the POG SOAP API
- POG 2.0.0 released
- Coming soon: Generate parent-child objects
- Generated abstraction v/s dynamic abstraction
- Zend Framework preview
- Coming soon: Generate Objects through SOAP
- Easily save images and files to a database
- PHP, Paypal & POG
- Five advanced Code Generator tips
- PHP Pagination using generated objects
- PHP Code Generator benchmarks
- Representing database objects using an AJAX Tree interface
- Using SETUP in a production environment
- Description of the generated object package
- Introducing PHP Object Generator version 1.6
- Using AJAX and PHP Object Generator
- When to use Object->SaveNew()
- Generating PHP objects in 2006
- Happy Holidays
- A short video of the POG Setup process
- A sneak peek at POG 1.6
- POG Tip: Field limits
- Previous versions.
- Searching the blog and tutorials sections
- Generating code with "Other" SQL data types
- Five general POG tips
- POG source code locations
- Microsoft SQL 2005 Express Edition
- Impatiently awaiting PHP 5.1 and PDO
- Php Object Generator goes open source
- POG generates PDO compatible code
- Oracle to offer free database
- POG Google group
- Database Wrappers and POG
- Revisions
- The generator blog
- An explanation of the 'Escape' function.
- Mirror, mirror
- Using POG to solve real world problems
- A php object-relational database tool
- A simple and flexible Object Oriented approach to PHP
Back to the Code Generator
The POG Google group
The POG tutorials/code samples
The POG mirror site
Automatic table alignment
written 1973 days agoAutomatic table alignment was recently introduced, and we’ve personally experienced a further increase in our productivity. Letting POG Setup take care of keeping objects and tables aligned, really allows you to forget about the underlying database. (Sometimes a bad thing though!)
The following are real-life cases where we truly found automatic table alignment indispensable:
Scenario A
Schema Changes without any hassle
While working in a small team of 3-5 developers, very often, one of the developers will need to modify the underlying table structure to accommodate for a new attribute. POG setup allows the developer to regenerate the PHP object class, align his local database and commit the new object(s) to a common code repository when the code is deemed satisfactory . All the remaining developers then simply need to do a repository update and run POG Setup. Voila! they too have the latest database schema on their machine with database access code that is 100% aligned with the database.
The other side
I have personally experienced work environments where the responsibility boundaries were marked at the database level. That is, where there is a database team and an application team. The problem with this ‘configuration’ is that there is often a misalignment between the database and application because the teams often work at different speeds or due to miscommunication. This is why I personally believe that the way POG handles things allows for more efficient web teams.
Scenario B
Migrating an application from a development machine to a Production machine
When dealing with a database application, it’s almost certain that the database schema will change by the next version release. Usually, when the application goes live, the production database has to be modified so that it contains the new schema.
POG Setup allows the release manager to automate this step. A script can be written to upload the newest source code and run setup at a specific time. No manual steps are then required and what you have is effectively an automated ‘build’ system.
There are a few other scenarios I can think of where the usefulness of automatic table alignment really shines, but the 2 use-cases outlined above are the main ones we’ve personally experienced so far while using POG.
Hope this has shown at least a little bit why we love POG so much!

This is a weblog about the Php Object Generator (POG) project, OO PHP, databases and Php code generators in general.
Php Object Generator, (POG) is an open source PHP code generator which automatically generates clean & tested Object Oriented code for your PHP4/PHP5 application.
Subscribe to our RSS feed
Feedback, Feature Requests, Bugs to:
The POG Google group
Send us a Hello through email