148 Commits

Author SHA1 Message Date
Jérôme Tamarelle
2bf874b4e3 Make doctrine/mongodb-odm-bundle an official recipe (#1509)
* Import doctrine/mongodb-odm-bundle recipes from contrib

* Add alias 'mongodb-odm' for 'doctrine/mongodb-odm-bundle'

* No need to resolve MONGODB_URL env var
2026-01-16 13:26:38 +01:00
HypeMC
46a4d63606 [doctrine/doctrine-bundle] Fix installing on Symfony 6.4 2025-12-01 22:49:54 +01:00
Dieter Beck
645e85e780 [doctrine/doctrine-bundle] add a recipe for DoctrineBundle 3.0 (#1462) 2025-11-04 12:11:28 +01:00
Wouter de Jong
130b2339a9 Add PHPUnit 11 recipe, treat PHPUnitBridge only as a PHPUnit extension (#1401) 2025-05-28 16:34:10 +02:00
Kevin Bond
388adac83f [doctrine/doctrine-bundle] add environment to sqlite DSN 2025-04-24 11:12:52 -04:00
Christophe Coevoet
810002ccbf Add a recipe for DoctrineBundle 2.13
This recipe avoids getting deprecations from the ORM by turning on new
settings.
For the identity generation precedence, using `identity` is the best
choice for new projects (especially when using DBAL 4.x from the start).
2024-10-10 15:24:15 +02:00
Nicolas Grekas
480380687d [doctrine/doctrine-bundle] Disable automapping when using FWB >= 7.1 (#1316) 2024-05-31 09:56:41 +02:00
Gabriel Penide Calvo
c511f8c11c Fix healthcheck for database service (#1310)
As per https://github.com/symfony/recipes/pull/1307
2024-05-08 13:28:51 +02:00
DrWarpMan
06b3536d9e fix healthcheck postgres user
By default, root user is used to connect to the database.
If the database does not have a "root" role, the following error is logged everytime the health check happens: 'FATAL:  role "root" does not exist', which spams the log.
2024-04-19 00:18:54 +02:00
Maxime Helias
fd96941b6d Add healthcheck on database service (#1304) 2024-04-05 19:19:12 +02:00
Nicolas Grekas
002f8c8026 Enable entity automapping for controllers again (#1302) 2024-03-30 07:24:18 +01:00
Maxime Helias
5109705251 Switch dockerfile instruction to Debian (#1303) 2024-03-30 07:23:39 +01:00
Bob van de Vijver
f00d6d3ca0 Disable controller resolver auto mapping by default (#1299) 2024-03-15 15:37:30 +01:00
Fabien Potencier
ca74983cff Enable use_savepoints by default for Doctrine DBAL (#1290) 2024-02-08 10:20:54 +01:00
Fabien Potencier
7aae68f268 Bump to PostgreSQL 16 2024-01-18 08:00:33 +01:00
laurent
3c8f870fb4 fix: doctrine bundle dockerfile run command 2023-12-10 10:19:42 +01:00
Théo D
11095f4c8f fix(config): Add missing key "type" in doctrine.yaml config for version 2.10 (#1247) 2023-10-23 16:15:08 -04:00
Kévin Dunglas
874742e563 [doctrine-bundle] leverage install-php-extensions (#1206)
* [doctrine-bundle] leverage install-php-extensions

* ony in 2.9
2023-07-30 15:00:21 +02:00
Grégoire Pineau
2cf7ec6e8e [DoctrineBundle] Enable collect-backtrace for dev env (#1223) 2023-07-18 16:50:59 -04:00
Christophe Coevoet
8761452d54 Opt-in for the new driver validations for DoctrineBundle 2.10 2023-06-05 17:33:17 +02:00
Alexander Schranz
e0f64dfe5f Add mariadb example to DATABASE_URL (#1186)
* Add mariadb example to DATABASE_URL

* Apply change requests

* Use same casing as in the doctrine/dbal mariadb docs

See https://github.com/doctrine/dbal/pull/5971

* Update doctrine/doctrine-bundle/2.8/manifest.json

Co-authored-by: Alexander M. Turek <me@derrabus.de>

* Use only major version for postgresql serverVersion

---------

Co-authored-by: Alexander M. Turek <me@derrabus.de>
2023-04-28 13:04:06 +02:00
rherault
ab741d4b01 fix: adding quote to prevent word splitting
Based on hadolint docker, adding quote to $(nproc) to prevent word splitting
2023-03-02 18:41:39 +01:00
Fabien Potencier
ff7d429ef5 Fix volume name 2023-01-24 13:07:03 +01:00
Kévin Dunglas
cd90ff6aa2 [doctrine-bundle] make Docker volume name consistent (#1116) 2023-01-24 13:06:24 +01:00
Fabien Potencier
ead272834a Use PostgreSQL 15 by default (#1166) 2023-01-11 14:10:25 +01:00
Nicolas Grekas
4684eb3505 Turn on "doctrine.orm.enable_lazy_ghost_objects" by default (#1140) 2023-01-10 10:40:09 -05:00
Fabien Potencier
923757ec09 Merge pull request #1143 from symfony/Tobion-patch-1
Put doctrine proxies in build dir for production
2022-12-18 10:11:26 +01:00
Fabien Potencier
65714dba32 Use PostgreSQL 14 everywhere (#1151) 2022-11-21 16:27:10 +01:00
Tobias Schultze
6f6ffe214f Put doctrine proxies in build dir for production
When auto_generate_proxy_classes: false is set, the proxies need to be pre-generated with the cache warmer. So in this case, the files are much better suited in the build dir. The build dir is the same as the cache dir by default. But for people trying to use the build dir properly, this makes much more sense. See https://github.com/symfony/symfony/issues/40827#issuecomment-820653578
2022-11-11 02:31:40 +01:00
Antoine Makdessi
09525c4bef Address reviews 2022-08-29 13:08:57 +01:00
Antoine Makdessi
2c135cf86c Doctrine Migration profiler disabled by default 2022-08-29 10:30:34 +02:00
Kévin Dunglas
b3395a2477 [doctrine-bundle] Upgrade to Postgres 14 and MySQL 8 (#1115) 2022-08-05 10:01:11 +02:00
Nicolas Grekas
9a7f5bcebb Revert "Update spacing of doctrine yml files (#1018)"
This reverts commit ff11f17875.
2022-02-17 17:44:56 +01:00
Alexander Schranz
ff11f17875 Update spacing of doctrine yml files (#1018) 2022-02-17 17:01:23 +01:00
Nicolas Grekas
803a504010 Skip recipe for doctrine/annotations when symfony/routing 6 is installed (#1060) 2022-02-17 13:46:21 +01:00
Grégoire Paris
f417ab2dcb Specify charset when using MySQL (#1059)
Because of backward-compatibility reasons, not specifying the charset
will result in "utf8" being used, which is a deprecated charset.
Also, when the charset for creating tables is not specified, the one
specified in the DSN is reused if specified.

In the future, DBAL is going to drop default values, which means we will
have to specify a charset anyway.
2022-02-16 11:04:53 +01:00
Nicolas Grekas
6cb5f0ee26 Conflict with fwb < 5.3 when@env 2022-02-12 11:52:53 +01:00
Ryan Weaver
ea6ade9061 Consolidating env-specific files into main config file for simplicity 2022-02-10 22:25:56 +01:00
Fabien Potencier
b16ba4a603 Merge pull request #971 from nicolas-grekas/db-type
Rely on defaults for doctrine mapping types
2021-12-22 08:03:01 +01:00
Fabien Potencier
4e13583173 Merge pull request #1013 from Nek-/patch-2
DATABASE_URL configured like postgresql config
2021-10-23 08:46:16 +02:00
Maxime Veber
b1b582b732 feat: DATABSE_URL configured sync with postgresql
PostgreSQL is configured in docker-compose.yaml file in the same manifest but with another configuration.
The purpose of this commit is to make it ready by default to reduce what the user is supposed to change at install time.
2021-10-22 16:40:32 +02:00
Sander
6d0b831af4 Add missing return type 2021-10-22 12:09:34 +02:00
Nicolas Grekas
3f6db031bc Rely on defaults for doctrine mapping types 2021-09-15 11:01:05 +02:00
Jan Haring - JAN.tm
b294873ff1 Removed deprecated configuration key metadata_cache_driver from DoctrineBundle config for 2.3 and 2.4 2021-08-31 10:07:59 +02:00
Fabien Potencier
1aa7d46cb0 Remove the header from post-install files (handled by Flex now) 2021-08-30 12:25:28 +02:00
Nicolas Grekas
a1a70353f6 Remove all symlinks 2021-07-07 16:12:10 +02:00
Nicolas Grekas
be2898b8e4 Update note about server version 2021-05-10 19:24:06 +02:00
Jesse Rushlow
16733e837c [doctrine-bundle] add missing folders in 2.4 2021-05-10 05:07:36 -04:00
Nicolas Grekas
919704c8ed [doctrine/doctrine-bundle] Use dbname_suffix in tests 2021-04-24 19:44:27 +02:00
guillaumesmo
0239c8231d Wrong comment in doctrine/doctrine-bundle 2.3 recipe
Unrecognized option "username" under "doctrine.dbal.connections.default"
2021-04-12 16:17:17 +02:00