Alejandro Celaya | Blog

Software development, agile methodologies and open source projects.

Tag Archive — "database"

Considerations when working with async PHP runtimes like swoole
Asynchronous and non-blocking runtimes are pretty usual in many programming languages, as well as long-lived web apps that stay in memory and are capable of dispatching multiple HTTP requests without having to be fully bootstrapped every time. This has not been traditionally the ...
Using UUID identifiers for databases in PHP projects with Doctrine
It's well known that using autoincrement identifiers for resources in a public API is not a very good idea, since you are exposing too much information about the size of your database and your business in general. The PHP community is recommending to better use UUIDs these days,...
Working with custom column types in Doctrine. Enums.
Doctrine is currently the most used ORM in PHP. It makes it very easy to work with databases in an object oriented way. It comes with a set of built-in column types that map database types with PHP types. For example, the datetime column type, persists the value of an entity col...
Dynamically create doctrine entity managers in Zend Framework 2
Some time ago I published an article talking about different Doctrine configurations when using the DoctrineORMModule in Zend Framework 2 applications, so that you can create multiple database connections, either by using one entity manager or more than one. Since then, many peo...