Hi all, In my result class I added a row object method that returns a legacy object with the base data populated.
That legacy object has a method to get at some related table data with direct SQL. Not every use of the object requires that data to be loaded. Suppose in one case the row object came from a result set with a gigantic prefetch that cached all the related data. In the row object method, how do I tell whether the related objects have been populated already, without calling the DBIC relationship accessor, which would execute an extra query if not loaded? If I can tell from the row object whether or not the related entities are already there, I can go ahead and populate the legacy object's related data cache. Mark _______________________________________________ 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]
