Manipulating objects with the ORM layer