Magic methods in ORM