-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathChildEntity.php
More file actions
28 lines (22 loc) · 690 Bytes
/
ChildEntity.php
File metadata and controls
28 lines (22 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
declare(strict_types=1);
/*
* This file is part of the zenstruck/foundry package.
*
* (c) Kevin Bond <kevinbond@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zenstruck\Foundry\Tests\Fixture\Entity\EdgeCases\OneToManyWithLifecycleCallback;
use Doctrine\ORM\Mapping as ORM;
use Zenstruck\Foundry\Tests\Fixture\Model\Base;
#[ORM\Entity]
#[ORM\Table('one_to_many_lifecycle_child')]
class ChildEntity extends Base
{
#[ORM\ManyToOne(inversedBy: 'children')]
public ?ParentEntity $parent = null;
#[ORM\Column(nullable: true)]
public ?string $name = null;
}