Skip to content
The Symfony PHP framework
Branch: master
Clone or download
fabpot bug #31085 [DoctrineBridge] Unique mapping setting is optional (ksave…
…ras)

This PR was squashed before being merged into the 4.3-dev branch (closes #31085).

Discussion
----------

[DoctrineBridge] Unique mapping setting is optional

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

```sh
Executed script cache:clear  [KO]
 [KO]
Script cache:clear returned with error code 1
!!
!!   // Clearing the cache for the dev environment with debug
!!   // true
!!
!!
In DoctrineLoader.php line 71:

  [ErrorException]
  Notice: Undefined index: unique

Exception trace:
 () at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/doctrine-bridge/Validator/DoctrineLoader.php:71
 Symfony\Bridge\Doctrine\Validator\DoctrineLoader->loadClassMetadata() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/validator/Mapping/Loader/LoaderChain.php:54
 Symfony\Component\Validator\Mapping\Loader\LoaderChain->loadClassMetadata() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/validator/Mapping/Factory/LazyLoadingMetadataFactory.php:105
 Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory->getMetadataFor() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/framework-bundle/CacheWarmer/ValidatorCacheWarmer.php:63
 Symfony\Bundle\FrameworkBundle\CacheWarmer\ValidatorCacheWarmer->doWarmUp() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/framework-bundle/CacheWarmer/AbstractPhpFileCacheWarmer.php:51
 Symfony\Bundle\FrameworkBundle\CacheWarmer\AbstractPhpFileCacheWarmer->warmUp() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php:96
 Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/framework-bundle/Command/CacheClearCommand.php:194
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/framework-bundle/Command/CacheClearCommand.php:129
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/console/Application.php:930
 Symfony\Component\Console\Application->doRunCommand() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/framework-bundle/Console/Application.php:87
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/framework-bundle/Console/Application.php:73
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/ksaveras/Projects/mokytojas.local/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /home/ksaveras/Projects/mokytojas.local/bin/console:40

cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

./bin/console ca:cl
```

Commits
-------

fde4dc9 [DoctrineBridge] Unique mapping setting is optional
Latest commit 7e56ef1 Apr 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.composer Drop hirak/prestissimo May 12, 2016
.github
src/Symfony bug #31085 [DoctrineBridge] Unique mapping setting is optional (ksave… Apr 22, 2019
.appveyor.yml Merge branch '3.4' into 4.2 Apr 12, 2019
.editorconfig Update .editorconfig Sep 6, 2018
.gitignore
.php_cs.dist fixed CS Jan 16, 2019
.travis.yml
CHANGELOG-4.0.md Merge branch '3.4' into 4.1 Aug 1, 2018
CHANGELOG-4.1.md updated CHANGELOG for 4.1.10 Jan 6, 2019
CHANGELOG-4.2.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md Mention the community review guide Dec 18, 2016
CONTRIBUTORS.md update CONTRIBUTORS for 3.4.25 Apr 16, 2019
LICENSE update year in license files Jan 1, 2019
README.md Merge branch '2.8' into 3.4 May 25, 2018
UPGRADE-4.0.md Merge branch '3.4' into 4.2 Feb 23, 2019
UPGRADE-4.1.md Merge branch '4.0' into 4.1 May 31, 2018
UPGRADE-4.2.md [Contracts] extract LocaleAwareInterface out of TranslatorInterface Dec 5, 2018
UPGRADE-4.3.md [Security] deprecate BCryptPasswordEncoder in favor of NativePassword… Apr 18, 2019
UPGRADE-5.0.md
composer.json [DomCrawler] Optionally use html5-php to parse HTML Apr 3, 2019
link appending root of Contracts dir (where composer.json is located) Jul 31, 2018
phpunit
phpunit.xml.dist #27345 Added Lock/Store/MongoDbStore Mar 29, 2019

README.md

Symfony is a PHP framework for web applications and a set of reusable PHP components. Symfony is used by thousands of web applications (including BlaBlaCar.com and Spotify.com) and most of the popular PHP projects (including Drupal and Magento).

Installation

Documentation

Community

Contributing

Symfony is an Open Source, community-driven project with thousands of contributors. Join them contributing code or contributing documentation.

Security Issues

If you discover a security vulnerability within Symfony, please follow our disclosure procedure.

About Us

Symfony development is sponsored by SensioLabs, led by the Symfony Core Team and supported by Symfony contributors.

You can’t perform that action at this time.