25 Commits

Author SHA1 Message Date
Pauline Vos
19a6b47862 Handle document relation compatibility (#23)
* Handle Document relation compatibility

`Reference*` relationships cannot target `EmbeddedDocument`s and
vice-versa for standalone `Document`s. This commit adds checks for
compatibility and offers to change the document type (if possible).

* Add support for self-referencing relationship on new document

When a document is generated with `make:document`, it now offers the
0.1.0
2026-03-20 11:08:02 +01:00
Jérôme Tamarelle
7e33592588 Use stable symfony/maker-bundle (#12) 2026-03-19 10:25:11 +01:00
dependabot[bot]
ed48825b1d Bump ramsey/composer-install from 3 to 4 (#20)
Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 3 to 4.
- [Release notes](https://github.com/ramsey/composer-install/releases)
- [Commits](https://github.com/ramsey/composer-install/compare/v3...v4)

---
updated-dependencies:
- dependency-name: ramsey/composer-install
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-18 19:14:55 +01:00
dependabot[bot]
e675123fa0 Bump doctrine/.github/.github/workflows/release-on-milestone-closed.yml (#21)
Bumps [doctrine/.github/.github/workflows/release-on-milestone-closed.yml](https://github.com/doctrine/.github) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](https://github.com/doctrine/.github/compare/13.1.0...14.0.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/release-on-milestone-closed.yml
  dependency-version: 14.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-18 19:14:45 +01:00
dependabot[bot]
aaaa193add Bump doctrine/.github/.github/workflows/coding-standards.yml (#22)
Bumps [doctrine/.github/.github/workflows/coding-standards.yml](https://github.com/doctrine/.github) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](https://github.com/doctrine/.github/compare/13.1.0...14.0.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/coding-standards.yml
  dependency-version: 14.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-18 19:14:32 +01:00
dependabot[bot]
476ba718f3 Bump doctrine/.github/.github/workflows/phpstan.yml (#19)
Bumps [doctrine/.github/.github/workflows/phpstan.yml](https://github.com/doctrine/.github) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](https://github.com/doctrine/.github/compare/13.1.0...14.0.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/phpstan.yml
  dependency-version: 14.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-18 19:14:23 +01:00
Jérôme Tamarelle
42440cfc19 Fix phpstan expect excluded directory to exist (#24)
* Fix phpstan expect excluded directory to exist

* Baseline phpstan issues
2026-03-18 19:10:55 +01:00
dependabot[bot]
277dcf44fc Bump actions/upload-artifact from 6 to 7 (#15)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-16 10:43:27 +01:00
dependabot[bot]
4903acddc0 Bump actions/download-artifact from 7 to 8 (#14)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 7 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-16 10:43:17 +01:00
Claudio Zizza
9dbec0b58c Use correct workflow name for static analysis (#18) 2026-03-16 10:42:45 +01:00
Pauline Vos
e36e10e95c Support adding search indexes to documents (#17)
* Create test trait for skipping functional tests

So that tests can be skipped based on feature support

* Support adding search indexes to Documents
2026-03-11 16:35:22 +01:00
Pauline Vos
648be6c8d1 Improvements to make:index (#16)
* Simplify choice questions in `MakeIndex`

There were a few questions with custom validators and such that didn't
really need it, since they could just be instances of `ChoiceQuestion`,
which already covers validation

* Throw exception in make:index if no fields available

The `Id` field is indexed by default, and therefore if no other fields
are present there are no candidates for index keys

* Make class name in make:index selectable

Because `make:index` can only be run against already existing documents
2026-03-10 14:18:25 +01:00
Pauline Vos
9d2d58abd7 Support adding indexes to Document (#13) 2026-03-06 11:42:40 +01:00
Jérôme Tamarelle
2a8f1953d7 Add relationships (#7) 2026-02-24 14:11:09 +01:00
Pauline Vos
8721f4a4f6 Support adding fields in make command (#10) 2026-02-11 11:23:33 +01:00
Jérôme Tamarelle
5904a7b1fa CS: Use question mark instead of null in non-union type (#11) 2026-02-10 13:17:35 +01:00
dependabot[bot]
07db159ba0 Bump actions/download-artifact from 6 to 7 (#9)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-04 09:05:34 +01:00
dependabot[bot]
4421ffc92a Bump actions/upload-artifact from 5 to 6 (#8)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-04 09:05:23 +01:00
Pauline Vos
23d7dbf5a4 Merge pull request #6 from paulinevos/fix-collection
Remove `Collection` attribute
2026-02-02 16:06:44 +01:00
Pauline Vos
2bbfa021e2 Remove Collection attribute
There is no such attribute; `collection` is an argument to the
`Document` attribute instead
2026-02-02 15:25:22 +01:00
Jérôme Tamarelle
f3ef711650 Remove unused Kernel class from tests (#5) 2026-02-02 15:19:05 +01:00
Jérôme Tamarelle
5dc08c8596 Import and modify Validator class from MakerBundle (#4)
* Import and modify Validator class from MakerBundle

* Trim $ from field name

* Trim spaces from field name
2026-01-30 16:17:22 +01:00
Jérôme Tamarelle
e59afbe9e5 PHPORM-439 Initialize the make:document command (#3)
* Setup test

* Draft implementation of make:document command

* doctrine/mongodb-odm-bundle has now an official recipe

* Add tests to MongoDBHelper

* Update attribute namespace for ODM v2.16

* Fix tests

* Require version 1.x from symfony/maker-bundle, as it exist in my fork and in the symfony repo

* Add symfony/phpunit-bridge because it's symlinked in test environment

'https://github.com/symfony/maker-bundle/pull/480#pullrequestreview-304282682'

* Add mongodb-atlas-local container to tests

* Add PHP 8.5 polyfill
2026-01-30 12:01:03 +01:00
Jérôme Tamarelle
f80b9c201b Initialize bundle configuration with tests and CI (#2) 2026-01-07 12:29:42 +01:00
Jérôme Tamarelle
d0bdc68e13 Init Symfony Bundle 2026-01-06 13:31:19 +01:00