Skip to content

Commit 611f782

Browse files
committed
Remove annotations example
1 parent 5f4b8d0 commit 611f782

File tree

2 files changed

+0
-56
lines changed

2 files changed

+0
-56
lines changed

reference/constraints/DisableAutoMapping.rst

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,6 @@ metadata:
2222

2323
.. configuration-block::
2424

25-
.. code-block:: php-annotations
26-
27-
// src/Model/BookCollection.php
28-
namespace App\Model;
29-
30-
use App\Model\Author;
31-
use App\Model\BookMetadata;
32-
use Doctrine\ORM\Mapping as ORM;
33-
use Symfony\Component\Validator\Constraints as Assert;
34-
35-
/**
36-
* @Assert\DisableAutoMapping
37-
*/
38-
class BookCollection
39-
{
40-
/**
41-
* @ORM\Column(nullable=false)
42-
*/
43-
protected $name = '';
44-
45-
/**
46-
* @ORM\ManyToOne(targetEntity=Author::class)
47-
*/
48-
public Author $author;
49-
50-
// ...
51-
}
52-
5325
.. code-block:: php-attributes
5426
5527
// src/Model/BookCollection.php

reference/constraints/EnableAutoMapping.rst

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,6 @@ metadata:
2222

2323
.. configuration-block::
2424

25-
.. code-block:: php-annotations
26-
27-
// src/Model/BookCollection.php
28-
namespace App\Model;
29-
30-
use App\Model\Author;
31-
use App\Model\BookMetadata;
32-
use Doctrine\ORM\Mapping as ORM;
33-
use Symfony\Component\Validator\Constraints as Assert;
34-
35-
/**
36-
* @Assert\EnableAutoMapping
37-
*/
38-
class BookCollection
39-
{
40-
/**
41-
* @ORM\Column(nullable=false)
42-
*/
43-
protected $name = '';
44-
45-
/**
46-
* @ORM\ManyToOne(targetEntity=Author::class)
47-
*/
48-
public Author $author;
49-
50-
// ...
51-
}
52-
5325
.. code-block:: php-attributes
5426
5527
// src/Model/BookCollection.php

0 commit comments

Comments
 (0)