Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

Conversation

@Christian-Rades
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Apr 17, 2018

Coverage Status

Coverage increased (+0.1%) to 42.345% when pulling e973045 on CON-5203 into 13b1830 on master.

$detail->setConfiguratorOptions($detailOptions);
$this->manager->persist($detail);
$this->manager->persist($article);
$this->manager->persist($article);
Copy link
Contributor

Choose a reason for hiding this comment

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

Warum zweimal persist?


$this->manager->flush();


Copy link
Contributor

Choose a reason for hiding this comment

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

Zwei leere Zeilen


$configSet->getOptions()->removeElement($detailOption);

$this->manager->flush();
Copy link
Contributor

Choose a reason for hiding this comment

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

muss flush in jedem Schleifendurchlauf?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Leider ja :(

foreach ($options as $option) {
$optionCollection->removeElement($option);
}
$configSet->setOptions($options);
Copy link
Collaborator

Choose a reason for hiding this comment

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

does setOptions() append or does it overwrite the list of options?
i think it overrides and then the whole foreach is not necessary

{
$connection = $this->manager->getConnection();
$query = $connection->prepare(
'SELECT option_id FROM s_article_configurator_set_option_relations WHERE option_id = :optionId UNION
Copy link
Collaborator

Choose a reason for hiding this comment

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

image
UNION

@keulinho keulinho merged commit aee174c into master Apr 25, 2018
@keulinho keulinho deleted the CON-5203 branch April 25, 2018 09:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants