Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added text about id generator. Removed invalid ids from the examples. #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

renatoliveira
Copy link

I've changed the readme text a bit to use valid Ids, and added a section about using an Id generator class instead of hardcoding them. 👍

@renatoliveira
Copy link
Author

Just made an addition: now it is possible to set the parent with a DescribeFieldResult. This way is safer to set relationships between custom objects. I've had an issue a couple of hours ago where I had two custom objects related to each other and the framework couldn't set the relationship correctly because of a typo.

Relationship was like 'Parent__r' and I wrote 'parent__r'. With this, there's no way to get a typo, even if someone changes the field on setup (like when correcting the lowercase "P" in this case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant