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 here is a few thoughts on adjusting child entities between contain and contain mapper....
For child selects and/or joins we will need to have the ZendDb driver here. I am thinking that the best solution at this point would be to actually skip the joins and actually do separate selects (while it may be slower for somethings the speed may be negotiable on smaller projects).
The Contain entity definition could then contain in the child entity and/or child entities have options:
mapper - an instance of the mapper
mapper_criteria - the criteria to pass in aka join information an array of columns and values where the values are dynamic.
join_id = entity_value
When it is a simple child entity; we do a 1:1 using the findOne method on the mapper.
When it is a multiple child entity; we do a 1:m using the find method on the mapper.
Please let me know if you have any additional thoughts as I would love to incorporate them because I need to do something on this today 👍
The text was updated successfully, but these errors were encountered:
So here is a few thoughts on adjusting child entities between contain and contain mapper....
For child selects and/or joins we will need to have the ZendDb driver here. I am thinking that the best solution at this point would be to actually skip the joins and actually do separate selects (while it may be slower for somethings the speed may be negotiable on smaller projects).
The Contain entity definition could then contain in the child entity and/or child entities have options:
When it is a simple child entity; we do a 1:1 using the findOne method on the mapper.
When it is a multiple child entity; we do a 1:m using the find method on the mapper.
Please let me know if you have any additional thoughts as I would love to incorporate them because I need to do something on this today 👍
The text was updated successfully, but these errors were encountered: