Skip to content

Conversation

@jrushlow
Copy link
Collaborator

@jrushlow jrushlow commented Feb 8, 2024

Relates to make:entity field type question when passing ? to see all available types.

allows for removed types in DBAL 4 to still be available for users on DBAL 3

fixes #1446

@jrushlow jrushlow added the Minor Minor Enhancement label Feb 8, 2024
@jrushlow jrushlow force-pushed the ci/make-entity-legacy-test branch from 5e4ed0f to b82d78c Compare February 14, 2024 16:14
@jrushlow jrushlow changed the title [ci] add make:entity object property test [make:entity] only show supported types in cli wizard Feb 14, 2024
@jrushlow jrushlow marked this pull request as ready for review February 14, 2024 16:19
@jrushlow jrushlow added Bug Bug Fix and removed Minor Minor Enhancement labels Feb 14, 2024
// get the dependencies installed in the test project (tmp/cache/TEST)
$installedVersions = require $runner->getPath('vendor/composer/installed.php');

if (!str_starts_with($installedVersions['versions']['doctrine/dbal']['version'], '3.')) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hack way to determine if dbal 3 or 4 is installed. MakerTestRunner::doesClassExist() doesnt provide all available classes for a cached project under test. To be dealt with under a different PR.

$io->writeln('');
};

$printRelationsSection = static function () use ($io) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

broke out handling relations to reduce the complexity above. otherwise we're nesting if's 3+ layers deep.

@jrushlow jrushlow added the Status: Needs Review Needs to be reviewed label Feb 14, 2024
@jrushlow jrushlow added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Feb 14, 2024
@jrushlow jrushlow merged commit 415332d into symfony:main Feb 14, 2024
@jrushlow jrushlow deleted the ci/make-entity-legacy-test branch February 14, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Bug Fix Status: Reviewed Has been reviewed by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

object is listed but no longer valid for dbal4

2 participants