[odb-users] Problem building query with multiple shared objects
boris at codesynthesis.com
Wed Jun 25 03:33:43 EDT 2014
Quentin Deldycke <quentindeldycke at gmail.com> writes:
> Sadly, this solution is not the best for me, but i think it will be ok.
> I will create a view containing only the members of my query (3-4 out of
> 25+ fields) + the id of the "root" object. Then, I will be able to use this
> id to regenerate a complete object if needed.
Firstly, you don't need to have members in the view in order to be
able to use them in the query -- all the members from all the
associated objects can always be used.
Secondly, yes, I agree, if you need the object then this solution is
not ideal. In fact, there is a plan to add support for "object-loading
views" that instead of loading specific members will load the whole
More information about the odb-users