While trying the exact example, I found an issue:
> New expressions are not supported in this context
Fixes PHPLIB-1600
On top of https://github.com/mongodb-developer/API-platform-with-mongodb/pull/4 This PR demonstrate how to define an embedded document, and how to add [validation constraints](https://symfony...
sample_restaurants.restaurants
collection of Atlas sample dataset, the $address
property needs to be an array
(the wo...This directory is only for doctrine/orm
(SQL databases).
By moving this classes to a soft @final
in 1.8, we can make them hard final
in 2.0 and add types to the properties.
We don't expect any further implementations to be created out of this package.
Related to this outdated PR preparing a v2 #290
Fix PHPLIB-1323
This is not optimized as it creates a WritableStream
instance that is not really used.
The context resolver mechanism introduces in #1138 doesn't give direct access to the CollectionWrapper
which is required for this feature.
This file does not seem to be kept up to date. A new one will have to be created for version 5.
Proposition from @chalasr: https://github.com/symfony/symfony/pull/52833#issuecomment-1839135127
The logout URL generator should be used to create links with CSRF protection. In this case, the action is already secured by the form, the redirection is not necessary.
Deprecated in https://github.com/doctrine/DoctrineMongoDBBundle/pull/817
The tag doctrine_mongodb.odm.event_subscriber
is still supported by symfony/doctrine-bridge
.
namespace | removed | replaced by |
---|---|---|
default_commit_options |
fsync |
j |
default_commit_options |
safe |
w |
connections.*.options |
fsync ... |
The setDeprecated
method was added in Symfony 5.1. So it's safe to use it.
The deprecation info is there since 3.0. https://github.com/doctrine/DoctrineMongoDBBundle/commit/1e22a0ae05a993b9750dbead95108164c2963466
Options removed in 5.0 by https://github.com/doctrine/DoctrineMongoDBBundle...
This option was deprecated, using services is the only behavior, used by default.
The command is removed bi DIC extension instead of being disabled, so the code is more centralized and the dependency to the loader can be required.
Preparation for #796
Thanks to Composer API v2, we have an easy solution to retrieve the version of a package that is installed.
Cherry-picked from #784 and updated after review.
This types are inherited from parent class in Symfony.
All the commands are glue code for Doctrine features. If some needs to change the behavior of a command, they can duplicate the code. Maintenance is a lot easier when this classes are marked internal, as we don't have to keep backward-compatibility.
All this changes are already documented in the UPGRADE-5.0
ContainerAwareInterface
is deprecated since Symfony 6.4. It was used before, for fixture classes that were not defined as services. As all fixture classes must declared as servic...
Remove BC layer introduced in #690 to keep support for Doctrine cache adapters. PSR-6 is now required.
fixture_loader
was deprecated in #790
Twig templates discovery have been broken by https://github.com/doctrine/DoctrineMongoDBBundle/pull/826
The bundle path must be the root of the repository, as defined in [AbstractBundle
](https://github.com/symfony/symfony/blob/e9748122f6da5b9fc95c0ff04be91bbe40bba545/src/Symfony/Component/Ht...
In DoctrineMongoDBBundle
, we can't add parameter types to all the classes because they are not defined in the base class or the interface. https://github.com/doctrine/DoctrineMongoDBBundle/pull/812/files#diff-1571e1997e046b65a3fdffae3826e46e2a5a89adcce01ff580557d7eedc536e1R71
Adding paramete...
I'm not sure why we maintain this file in the previous branch. We decided to no longer do that in Symfony (see UPGRADE-7.0 on branch 6.4)
Make @see
references work (in PHPStorm at least).
Add return types to methods from the public API.
Follow-up https://github.com/doctrine/data-fixtures/pull/455#pullrequestreview-1782094062
Follow-up #457
Could you create the 2.0.x branch, please.
Fix PHPLIB-1324
Rename all the revisions as defined in the spec
> To rename multiple revisions of the same filename, users must retrieve the full li...
In order to add return types in #459, some tests needs to be updated.
I have a partial understanding of how ReferenceRepository
works, with the metadata system.
The [setReference
](https://github.com/doctrine/data-fixtures/blob/a9784519696b08571054a266d1c64f1c06a40806/src/ReferenceRepos...
Q | A |
---|---|
Branch? | 7.1 |
Bug fix? | yes |
New feature? | no |
Deprecations? | no |
Issues | - |
License | MIT |
When running bin/console cache:clear -vvv
on Mac OS, I get the following warning:
12:40:51 DEBUG [php] ...
Revert deprecation pass from https://github.com/doctrine/DoctrineMongoDBBundle/pull/811 and remove all deprecated parameters.
After examining the #AsDocumentListener
attributes of DoctrineMongoDBBundle
, and comparing them with #[AsDoctrineListener]
from DoctrineBundle
, I conclude that they serve the same purpose.
This PR adds the missing priority
property. It is correctly handled by [`Symfony\Bridge\Doctrin...
We dropped support for doctrine/cache
in https://github.com/doctrine/DoctrineMongoDBBundle/pull/804. Applications can upgrade to doctrine/persistence: 3
.
Updating minimum dependencies helps maintenance by avoiding edge version incompatibility with future releases.
If you use the TestAttributeListener
as it was, in a project, it will throw an exception:
> Attempted to call an undefined method named "prePersist" of class "TestAttributeListener". Did you mean to call "onPrePersist"?
Only the event name is used [when injected into the manager](https://...
Directory structure documented on https://symfony.com/doc/6.4/bundles/best_practices.html
./src
Tests
folder to ./tests
Resources/doc
to ./docs
Resources/config
to ./config
Q | A |
---|---|
Branch? | 6.3 |
Bug fix? | no |
New feature? | no |
Deprecations? | no |
Issues | Fix https://github.com/doctrine/DoctrineMongoDBBundle/issues/816 |
License | MIT |
In DoctrineMongoDBBundle
, the attribute to register e...
Remaining direct deprecation notices (1)
1x: Since symfony/monolog-bridge 5.4: "Symfony\Bridge\Monolog\Handler\SwiftMailerHandler" is deprecated and will be removed in 6.0.
1x in XmlMonologExtensionTest::testSingleEmailRecipient from Symfony\Bundle\MonologBundle\Tests\DependencyInj...
Following https://github.com/symfony/monolog-bundle/pull/446
The console logger have a map of verbosity => log level that should be configurable with env vars.
Disadvantage: in case of invalid log level, the exception cannot be contextualized with the output verbosity.
Q | A |
---|---|
Branch? | 6.3 |
Bug fix? | no |
New feature? | yes |
Deprecations? | yes |
Tickets | Fix #44787 #48219 |
License | MIT |
Doc PR | symfony/symfony-docs#... |
There were a lot of discussions on #44787 regarding the ...