Файл: symfony-2.7/src/Symfony/Bridge/Doctrine/Tests/Fixtures/AssociationEntity.php
Строк: 55
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SymfonyBridgeDoctrineTestsFixtures;
use DoctrineORMMapping as ORM;
/**
* @ORMEntity
*/
class AssociationEntity
{
/**
* @var int
* @ORMId @ORMGeneratedValue
* @ORMColumn(type="integer")
*/
private $id;
/**
* @ORMManyToOne(targetEntity="SingleIntIdEntity")
*
* @var SymfonyBridgeDoctrineTestsFixturesSingleIntIdEntity
*/
public $single;
/**
* @ORMManyToOne(targetEntity="CompositeIntIdEntity")
* @ORMJoinColumns({
* @ORMJoinColumn(name="composite_id1", referencedColumnName="id1"),
* @ORMJoinColumn(name="composite_id2", referencedColumnName="id2")
* })
*
* @var SymfonyBridgeDoctrineTestsFixturesCompositeIntIdEntity
*/
public $composite;
}