On 15 May 2008, at 21:04, Marc Mims wrote:

* Jose Fonseca <[EMAIL PROTECTED]> [080515 12:30]:
I raised the issue here as a sort of RFC on whether DBIC should
reload-on-write from the RDBMS automatically when updated with a scalar ref(literal SQL command). It seems reasonable that it should, I don't think
the returned SQL snippet is useful under any circumstance.

I don't think I'd like to see an automatic reload on update. In my own
code, the update is the last operation I perform on the object and I
wouldn't want to see it generate another round trip to the DB.

Perhaps it would be useful to automatically reload on the next access to
an object with scalarref values.

        -Marc


That strikes me as Too Much Magic. an update_and_refresh method would be my preferred solution if people really want this.


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to