1
0
mirror of synced 2025-02-09 00:39:25 +03:00

#6759 segregating test models into their own namespace

This commit is contained in:
Marco Pivetta 2017-10-07 12:48:19 +02:00
parent 6ba2d1c317
commit d831f4fd9f
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace Doctrine\Tests\Models\OneToOneInverseSideLoad;
use Doctrine\ORM\Mapping as ORM;
/**
* @Entity()
* @Table(name="one_to_one_inverse_side_load_inverse")
*/
class InverseSide
{
/**
* @Id()
* @Column(type="string")
* @GeneratedValue(strategy="NONE")
*/
public $id;
/**
* @OneToOne(targetEntity=OwningSide::class, mappedBy="inverse")
*/
public $owning;
}

View File

@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Doctrine\Tests\Models\OneToOneInverseSideLoad;
use Doctrine\ORM\Mapping as ORM;
/**
* @Entity()
* @Table(name="one_to_one_inverse_side_load_owning")
*/
class OwningSide
{
/**
* @Id()
* @Column(type="string")
* @GeneratedValue(strategy="NONE")
*/
public $id;
/**
* Owning side
*
* @OneToOne(targetEntity=InverseSide::class, inversedBy="owning")
* @JoinColumn(nullable=false, name="inverse")
*/
public $inverse;
}