What kind of relation should a junction object have with it's parent objects?
What I know from Salesforce documentation: The junction object should have master-detail relationships with the parent objects.
When I check the pricebookentry relationship with product and pricebook, I see this:
Both Product and Price Book are lookups in pricebookentry and pricebookentry is a junction object.
So, doesn't it contradict with the definition of junction object?
I'm confused. Am I missing something? Can I create a junction object using lookups too?
cascade delete
so no orphans can be created by deleting either aPricebook2
or aProduct2
- so some aspects of master-detail. Also, Product2, Pricebook2, and PricebookEntry don't have ownerIds unlike other junctions you would create. In some ways, using this as an example is a red herring. – cropredy Mar 17 '16 at 17:02