File tree

10 files changed

+494
-22
lines changed

10 files changed

+494
-22
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
7.1
5+
---
6+
7+
* Allow validating every class against `UniqueEntity` constraint
8+
49
7.0
510
---
611

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bridge\Doctrine\Tests\Fixtures;
13+
14+
class CreateDoubleNameEntity
15+
{
16+
public $primaryName;
17+
public $secondaryName;
18+
19+
public function __construct($primaryName, $secondaryName)
20+
{
21+
$this->primaryName = $primaryName;
22+
$this->secondaryName = $secondaryName;
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bridge\Doctrine\Tests\Fixtures;
13+
14+
class Dto
15+
{
16+
public string $foo;
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bridge\Doctrine\Tests\Fixtures;
13+
14+
class HireAnEmployee
15+
{
16+
public $name;
17+
18+
public function __construct($name)
19+
{
20+
$this->name = $name;
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bridge\Doctrine\Tests\Fixtures;
13+
14+
class UpdateCompositeIntIdEntity
15+
{
16+
public $id1;
17+
public $id2;
18+
public $name;
19+
20+
public function __construct($id1, $id2, $name)
21+
{
22+
$this->id1 = $id1;
23+
$this->id2 = $id2;
24+
$this->name = $name;
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bridge\Doctrine\Tests\Fixtures;
13+
14+
class UpdateCompositeObjectNoToStringIdEntity
15+
{
16+
/**
17+
* @var SingleIntIdNoToStringEntity
18+
*/
19+
protected $object1;
20+
21+
/**
22+
* @var SingleIntIdNoToStringEntity
23+
*/
24+
protected $object2;
25+
26+
public $name;
27+
28+
public function __construct(SingleIntIdNoToStringEntity $object1, SingleIntIdNoToStringEntity $object2, $name)
29+
{
30+
$this->object1 = $object1;
31+
$this->object2 = $object2;
32+
$this->name = $name;
33+
}
34+
35+
public function getObject1(): SingleIntIdNoToStringEntity
36+
{
37+
return $this->object1;
38+
}
39+
40+
public function getObject2(): SingleIntIdNoToStringEntity
41+
{
42+
return $this->object2;
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bridge\Doctrine\Tests\Fixtures;
13+
14+
class UpdateEmployeeProfile
15+
{
16+
public $id;
17+
public $name;
18+
19+
public function __construct($id, $name)
20+
{
21+
$this->id = $id;
22+
$this->name = $name;
23+
}
24+
}

0 commit comments

Comments
 (0)