-
Notifications
You must be signed in to change notification settings - Fork 351
Move Sulu Content Bundle namespace and integrate the content bundle into test setup #7675
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
Move Sulu Content Bundle namespace and integrate the content bundle into test setup #7675
Conversation
@@ -115,6 +109,7 @@ | |||
"symfony/translation-contracts": "^2.5 || ^3.0", | |||
"symfony/twig-bundle": "^6.4 || ^7.1", | |||
"symfony/validator": "^6.4 || ^7.1", | |||
"symfony/workflow": "^6.4 || ^7.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new requirement
@@ -152,7 +147,7 @@ | |||
"scheb/2fa-google-authenticator": "^6.10 || ^7.0", | |||
"scheb/2fa-totp": "^6.10 || ^7.0", | |||
"scheb/2fa-trusted-device": "^6.0 || ^7.0", | |||
"sulu/content-bundle": "dev-feature/content-resolver as 0.9.0", | |||
"sulu/automation-bundle": "^3.0@dev", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
content bundle has tests based on automation bundle which we need to check
0ab4629
to
291f6ba
Compare
e78eeac
to
60aaa7a
Compare
9958fbc
to
bd44d61
Compare
$entityFieldQuery = self::CONTENT_RICH_ENTITY_ALIAS . '.' . $this->getEntityIdField(); | ||
if ($this->entityManager->getConnection()->getDatabasePlatform() instanceof PostgreSQLPlatform) { | ||
// TODO no casting because indexes can then not be used | ||
$entityFieldQuery = 'CAST(' . self::CONTENT_RICH_ENTITY_ALIAS . '.' . $this->getEntityIdField() . ' AS STRING)'; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a temp hack to support PostgreSQL at current state we should remove this kind of general services to make things easier in future handled directly in the bundles they belong.
What's in this PR?
Move Sulu Content Bundle namespace and integrate the content bundle into test setup.
Why?
We moved ContentBundle in #7674 to the mono repository. Now some refactoring is required to move it into the correct namespace.
BC Breaks
Sulu\Bundle\ContentBundle\Content
->Sulu\Content
Sulu\Bundle\ContentBundle\SuluContentBundle
->Sulu\Content\Infrastructure\Symfony\HttpKernel\SuluContentBundle