lukethacoder / fflib.dev

⚡ Unofficial and semi-opinionated fflib documentation - Apex Enterprise Patterns
https://fflib.dev
MIT License
5 stars 0 forks source link

Feedback for “Domain Layer: Basic Example”, setting up IApplicationSObjectDomain #4

Open ShaolinDave opened 9 months ago

ShaolinDave commented 9 months ago

I'm trying to implement this for the first time in a new org. Writing the interface for the Contact object, I get this error:

Invalid type: IApplicationSObjectDomain

I'm not finding any place in the documentation to explain how to set up IApplicationSObjectDomain, and wondering if that step was skipped.

public interface IContacts extends IApplicationSObjectDomain {

}
lukethacoder commented 1 month ago

Hi @ShaolinDave , the interface documentation can be found here. This is quite minimal due to there not really being much to it, it just outlines which methods your Domain class should have, like a normal interface class.

I see you're getting an invalid type error? This may mean your install has not been successful? IApplicationSObjectDomain is part of the apex-enterprise-patterns/at4dx (IApplicationSObjectDomain ref) repo and should have been installed as a part of the setup process.