new QCustomer()
// tune query
.select(cust.name)
.contacts.fetch()
// predicates
.findList();
rather than fetchAll()
new QCustomer()
// tune query
.select(cust.name)
.contacts.fetchAll()
// predicates
.findList();
As I think "fetchAll()" is a little bit confusing with the "All" there. We either fetch with specific properties or not (and so that becomes all properties) so I think these should both be "fetch()".
So we can use fetch()
rather than fetchAll()
As I think "fetchAll()" is a little bit confusing with the "All" there. We either fetch with specific properties or not (and so that becomes all properties) so I think these should both be "fetch()".