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

Yii2-dynamic forms - Nested Dynamic Form #23

Open
jonatasfl opened this issue Aug 29, 2016 · 6 comments
Open

Yii2-dynamic forms - Nested Dynamic Form #23

jonatasfl opened this issue Aug 29, 2016 · 6 comments

Comments

@jonatasfl
Copy link

jonatasfl commented Aug 29, 2016

Firstly thank you for this extension and sorry for my bad english!

I'm using this extension with Yii2-dynamicforms and it works perfecly on simple scenario, avoiding unnecessary code.

Now I'm trying to use with Nested Dynamic Form example and i'm getting this error:

error_relation

This occurs when I create a relation via a junction table in Person model.

public function getHouses()
{
     return $this->hasMany(House::className(), ['person_id' => 'id']);
}
public function getRooms()
{
     return $this->hasMany(Room::className(), ['id' => 'person_id'])->via('houses');
}

Is there any solution to this problem or the extension does not support it?

Thank you!

@mootensai
Copy link
Owner

Could you send me your schema?

@mootensai
Copy link
Owner

Alternative : you could use https://github.com/mootensai/yii2-enhanced-gii

@jonatasfl
Copy link
Author

jonatasfl commented Aug 29, 2016

@mootensai I'm using this example

db-demo3

nested

If your extension to work with nested forms (usually it works with simple dynamic forms), will save many lines of code

Thank you for your attention and sorry for my bad english!

@deadmantfa
Copy link

Any update on this?? I trying something similar but its not working

@mootensai
Copy link
Owner

not yet..currently busy..could someone help?

@mootensai
Copy link
Owner

please try again with the new version

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

No branches or pull requests

3 participants