ORM implementation for PHP