Skip to content

preInit hook - #88

Open
perimetral wants to merge 2 commits into
scottwrobinson:masterfrom
perimetral:master
Open

preInit hook#88
perimetral wants to merge 2 commits into
scottwrobinson:masterfrom
perimetral:master

Conversation

@perimetral

Copy link
Copy Markdown

As long as constructor is used for schema describing in Camo, i found it is tricky to perform some init actions without appending needed manually after .create() call, so in this patch you may see new preInit hook which is called right in .create() method before returning of model.
Hook is syncronous. New data instance is passed to hook in first arg.

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