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

"Container with name '$name' already exists" after removeComponent #18

Open
matej21 opened this issue Sep 19, 2013 · 3 comments
Open

"Container with name '$name' already exists" after removeComponent #18

matej21 opened this issue Sep 19, 2013 · 3 comments
Labels

Comments

@matej21
Copy link
Contributor

matej21 commented Sep 19, 2013

Steps do reproduce the bug:

$container = $form->addDynamic(...);
$component = $container->createOne();
$container->removeComponent($component);
$container->createOne();
@fprochazka
Copy link
Member

There is method exactly for this, that also removes containers from the groups.

@matej21
Copy link
Contributor Author

matej21 commented Sep 20, 2013

Unfortunately, it doesn't work either :(
It doesn't remove given container from Kdyby\Replicator\Container::$created

@fprochazka
Copy link
Member

Oh, I see.

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

No branches or pull requests

2 participants