Now dynamicForeignKeys transfer from Doctrine.
I decided to use a method similar to fields() for transfering the dynamicForeignKeys from Doctrine to the DAO objects. Really this should be using the Doctrine @DiscriminatorColumn annotations, but that doesn't include the refKey information for CRM_Core_Reference_Basic. Since the goal here is to keep the DAO objects returning exactly the same stuff, this was the easy way to do that. As we start to implement the mapped sub classes for these kinds of relationships in Doctrine, maybe we can change how this works as well.
Showing
- CRM/Core/CodeGen/EntitySpecification.php 3 additions, 0 deletionsCRM/Core/CodeGen/EntitySpecification.php
- Civi/ACL/ACL.php 6 additions, 0 deletionsCivi/ACL/ACL.php
- Civi/ACL/Cache.php 5 additions, 0 deletionsCivi/ACL/Cache.php
- Civi/ACL/EntityRole.php 6 additions, 0 deletionsCivi/ACL/EntityRole.php
- Civi/API/Provider/DoctrineCrudProvider.php 1 addition, 1 deletionCivi/API/Provider/DoctrineCrudProvider.php
- Civi/Activity/Activity.php 5 additions, 0 deletionsCivi/Activity/Activity.php
- Civi/Activity/ActivityContact.php 5 additions, 0 deletionsCivi/Activity/ActivityContact.php
- Civi/Batch/Batch.php 5 additions, 0 deletionsCivi/Batch/Batch.php
- Civi/Batch/EntityBatch.php 6 additions, 0 deletionsCivi/Batch/EntityBatch.php
- Civi/CCase/CCase.php 5 additions, 0 deletionsCivi/CCase/CCase.php
- Civi/CCase/CaseActivity.php 5 additions, 0 deletionsCivi/CCase/CaseActivity.php
- Civi/CCase/CaseContact.php 5 additions, 0 deletionsCivi/CCase/CaseContact.php
- Civi/CCase/CaseType.php 5 additions, 0 deletionsCivi/CCase/CaseType.php
- Civi/Campaign/Campaign.php 5 additions, 0 deletionsCivi/Campaign/Campaign.php
- Civi/Campaign/CampaignGroup.php 6 additions, 0 deletionsCivi/Campaign/CampaignGroup.php
- Civi/Campaign/Survey.php 5 additions, 0 deletionsCivi/Campaign/Survey.php
- Civi/Contact/ACLContactCache.php 5 additions, 0 deletionsCivi/Contact/ACLContactCache.php
- Civi/Contact/Contact.php 5 additions, 0 deletionsCivi/Contact/Contact.php
- Civi/Contact/ContactType.php 5 additions, 0 deletionsCivi/Contact/ContactType.php
- Civi/Contact/DashboardContact.php 5 additions, 0 deletionsCivi/Contact/DashboardContact.php
Loading
Please register or sign in to comment