Site Archives data access objects

PHP, Query Object Pattern


This continues the discussion of Martin Fowler’s Object Query pattern from the book Patterns of Enterprise Application Architecture. The previous discussion about the Metadata mapper pattern talked about how to map domain objects to database results.
These discussion are really a brief overview of Microsoft’s Repository Factory and how they use Fowler’s patterns with [...]

Share on Facebook Share on Facebook

PHP, Data Access Layer


In reading about PHP data access one thing that I notice is a lot of example that explain reading and writing to a database have the mysql_connect() function and write/execute SQL statement directly in the page code. Coming from an enterprise architecture background this makes me cringe. It really reminds me of my early days [...]

Share on Facebook Share on Facebook