-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix doctrine/data-fixtures PR#334 (#340)
Fix doctrine/data-fixtures PR#334
- Loading branch information
Showing
3 changed files
with
88 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
tests/Doctrine/Tests/Common/DataFixtures/TestEntity/GroupWithSchema.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Doctrine\Tests\Common\DataFixtures\TestEntity; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
/** | ||
* @ORM\Entity() | ||
* @ORM\Table(name="group",schema="test_schema") | ||
*/ | ||
class GroupWithSchema | ||
{ | ||
/** | ||
* @ORM\Column(type="integer") | ||
* @ORM\Id | ||
* | ||
* @var int|null | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @ORM\Column(length=32) | ||
* @ORM\Id | ||
* | ||
* @var string|null | ||
*/ | ||
private $code; | ||
|
||
public function setId($id) : void | ||
{ | ||
$this->id = $id; | ||
} | ||
|
||
public function getId() : ?int | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function setCode($code) : void | ||
{ | ||
$this->code = $code; | ||
} | ||
|
||
public function getCode() : ?string | ||
{ | ||
return $this->code; | ||
} | ||
} |