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

Using child model from parent. #133

Open
algsupport opened this issue Aug 25, 2024 · 0 comments
Open

Using child model from parent. #133

algsupport opened this issue Aug 25, 2024 · 0 comments

Comments

@algsupport
Copy link

algsupport commented Aug 25, 2024

Hello,

Thank you for the great project. I was trying to to find out what would be a good and clean aproach to retrieve a child model.

I have a user form where I give the user the option to select the type of the model.
Then I would like to use that type to create a new entry in the database.

I have set $childTypes in the parent. And I was wondering if I can use it somehow to retrieve the child model I want to use.

I am currently using something like if type==x use child x etc....
I was thinking if there is a better way.

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

No branches or pull requests

1 participant