fflib-apex-common
fflib-apex-common copied to clipboard
Common Apex Library supporting Apex Enterprise Patterns and much more!
This change is [](https://reviewable.io/reviews/apex-enterprise-patterns/fflib-apex-common/393) Hi guys, please take a look at the suggestion for Criteria Factory. If you like the idea, I will add security checks and bind variables support....
Hi, I just wanted to point out that the 'Deploy to Salesforce' doesn't work due to the lack of parameters in the link. Currently, the URL in the link is:...
This change is [](https://reviewable.io/reviews/apex-enterprise-patterns/fflib-apex-common/390)
This utility function was created for the following reason. Our team kept writing code snippets that looked like the following: ``` if ( acct.Parent.Parent.Parent.Parent.Parent != null ) { managingUser =...
Assume we have a selector on a custom object `Foo__c` The following does not work: ``` public List selectByIdWithOwner(set idSet>) { fflib_QueryFactory fooQF = newQueryFactory() .selectFields(new List{'Owner.Alias'}); } ``` Result...
I considered just making a PR but this seems intentional. Example: ``` public static void checkFieldIsReadable(SObjectType objType, String fieldName) { checkFieldIsReadable(objType, fflib_SObjectDescribe.getDescribe(objType).getField(fieldName)); } public static void checkObjectIsReadable(SObjectType objType) { if...
When custom metadata tables include references to related metadata (e.g. Entity or Field Definitions), fflib_QueryFactory throws an exception. > FeatureSetDefinition__mdt.ParentObject__r is not a lookup or master-detail field but is used...
Would you have one Selector of a particular object for your entire Org, or would you create one per App/Process/Functionality? At the moment we are creating one seletor per object...
I tried to deploy the fflib-apex-common classes and mocks but the code coverage was not enough. 
Andy _(as you can imagine, I'm been retrofitting existing orgs to the SoC pattern and running into interesting use cases..appreciate the forum)_ **Use Case: Sync Quote + Quote Items to...