ORM development: relations