• ORM: when to raise an exception: on object creation or on use?

    From Victor Porton@21:1/5 to All on Fri Sep 4 17:15:53 2015
    XPost: comp.programming

    Should an ORM implementation query the DB as soon as an active record is created in order to check that the queried row exists in DB, or is it OK to throw an exception later when attempting to access a field (for an
    nonexistent row)?

    --
    Victor Porton - http://portonvictor.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)