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

Revert implementing 2nd argument for addChild #61

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

erik-zicht
Copy link
Contributor

Relates #60

@erik-zicht erik-zicht force-pushed the feature/revert-add-child-argument branch from ada4cc9 to 42c89be Compare June 8, 2020 08:48
@erik-zicht erik-zicht merged commit 3f64796 into release/6.x Jun 10, 2020
@erik-zicht erik-zicht deleted the feature/revert-add-child-argument branch June 10, 2020 06:17
$pageDef->addMethodCall('addChild', [new Reference($contentItemServiceId), 'contentItems']);
$pageDef->addMethodCall('addChild', [new Reference($contentItemServiceId)]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nog iets dat ik tegenkwam in een project (en bij het fixen van sonata-project/SonataAdminBundle#7705) dat dat tweede argument dus de property in de child moet zijn waar de parent op gekoppeld is. Dus hier niet 'contentItems' (= children), maar 'page' (= de parent).

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.

None yet

2 participants