You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far I can see Joli is properly constructing the query :
select item.*
from orderitem left outer join orders on orders.order_id = orderitem.order_id
left outer join item on item.item_id = orderitem.item_id
order by orderitem_id desc
The problem is that items collection only return orderitem's fields rather than the item's fields.
This is what each returning record has:
I/TiAPI ( 1598): key in _options
I/TiAPI ( 1598): key in _data
I/TiAPI ( 1598): key in _originalData
I/TiAPI ( 1598): key in isNew
I/TiAPI ( 1598): key in orderitem_id
I/TiAPI ( 1598): key in order_id
I/TiAPI ( 1598): key in item_id
I/TiAPI ( 1598): key in item_quantity
I/TiAPI ( 1598): key in beer_quantity
I/TiAPI ( 1598): key in orderitem_type
I/TiAPI ( 1598): key in beer_id
Those are all fields belonging to orderitem instead of item table as I expected.
Thanks!
nico.
The text was updated successfully, but these errors were encountered:
Hello,
To be honest I don't know if it is an issue or I am doing something wrong.
This is my query:
So far I can see Joli is properly constructing the query :
The problem is that items collection only return orderitem's fields rather than the item's fields.
This is what each returning record has:
Those are all fields belonging to orderitem instead of item table as I expected.
Thanks!
nico.
The text was updated successfully, but these errors were encountered: