Skip to content

Commit

Permalink
remove obsolete annotation mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Dec 4, 2023
1 parent 2619cc0 commit 869149c
Show file tree
Hide file tree
Showing 64 changed files with 116 additions and 866 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Changelog
* DocumentManager::flush no longer saves the PHPCR session if there are no changes
on the ODM layer.

* Removed deprecated annotations for fields. Use `@Field(type="...")` instead.
* Removed annotation mappings. Use attributes (or XML or YAML) instead.

### New Features

Expand Down
3 changes: 1 addition & 2 deletions cli-config.doctrine_dbal.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ if (isset($argv[1])

/* prepare the doctrine configuration */
$config = new \Doctrine\ODM\PHPCR\Configuration();
$driver = new \Doctrine\ODM\PHPCR\Mapping\Driver\AnnotationDriver(
new \Doctrine\Common\Annotations\AnnotationReader(),
$driver = new \Doctrine\ODM\PHPCR\Mapping\Driver\AttributeDriver(
__DIR__ . '/lib/Doctrine/ODM/PHPCR/Document'
);
$config->setMetadataDriverImpl($driver);
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ODM/PHPCR/Document/Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
/**
* This class represents an arbitrary node.
*
* It is used as a default document, for example with the ParentDocument annotation.
* You can not use this to create nodes as it has no type annotation.
* It is used as a default document, for example with the ParentDocument mapping.
* You can not use this to create nodes as it has no type mapping.
*/
#[PHPCR\Document]
class Generic
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ODM/PHPCR/DocumentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function hasLocaleChooserStrategy(): bool
public function getLocaleChooserStrategy(): LocaleChooserInterface
{
if (!isset($this->localeChooserStrategy)) {
throw new InvalidArgumentException('You must configure a language chooser strategy when having documents with the translatable annotation');
throw new InvalidArgumentException('You must configure a language chooser strategy when having documents with the translatable mapping');
}

return $this->localeChooserStrategy;
Expand Down
22 changes: 0 additions & 22 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Child.php

This file was deleted.

26 changes: 0 additions & 26 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Children.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Depth.php

This file was deleted.

28 changes: 0 additions & 28 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Document.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Field.php

This file was deleted.

16 changes: 0 additions & 16 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Id.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Locale.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/MappedSuperclass.php

This file was deleted.

14 changes: 0 additions & 14 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/MixedReferrers.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Node.php

This file was deleted.

15 changes: 0 additions & 15 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Nodename.php

This file was deleted.

20 changes: 0 additions & 20 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/ParentDocument.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/PostLoad.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/PostPersist.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/PostRemove.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/PostUpdate.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/PrePersist.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/PreRemove.php

This file was deleted.

13 changes: 0 additions & 13 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/PreUpdate.php

This file was deleted.

19 changes: 0 additions & 19 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Property.php

This file was deleted.

22 changes: 0 additions & 22 deletions lib/Doctrine/ODM/PHPCR/Mapping/Annotations/Reference.php

This file was deleted.

Loading

0 comments on commit 869149c

Please sign in to comment.