Skip to content

Commit

Permalink
Support --skip-property-types of ValidateSchemaCommand
Browse files Browse the repository at this point in the history
Doctrine seems to have added property types validation in the aforementioned command
This will allow passing the skip property types option where making changes to that is undesirable
  • Loading branch information
wucdbm authored Jul 5, 2024
1 parent a265d52 commit 1368e89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Task/DoctrineOrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static function getConfigurableOptions(): ConfigOptionsResolver
$resolver->setDefaults([
'skip_mapping' => false,
'skip_sync' => false,
'skip_property_types' => false,
'triggered_by' => ['php', 'xml', 'yml'],
]);

Expand Down Expand Up @@ -58,6 +59,7 @@ public function run(ContextInterface $context): TaskResultInterface
$arguments->add('orm:validate-schema');
$arguments->addOptionalArgument('--skip-mapping', $config['skip_mapping']);
$arguments->addOptionalArgument('--skip-sync', $config['skip_sync']);
$arguments->addOptionalArgument('--skip-property-types', $config['skip_property_types']);

$process = $this->processBuilder->buildProcess($arguments);

Expand Down

0 comments on commit 1368e89

Please sign in to comment.