mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
39 lines
563 B
PHP
39 lines
563 B
PHP
<?php
|
|
|
|
namespace Doctrine\ORM\Mapping;
|
|
|
|
if (class_exists('Doctrine\ORM\Mapping\ManyToOne')) {
|
|
return;
|
|
}
|
|
|
|
/**
|
|
* @Annotation
|
|
* @Target("PROPERTY")
|
|
*/
|
|
class ManyToOne implements Annotation
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $targetEntity;
|
|
|
|
/**
|
|
* @var array<string>
|
|
*/
|
|
public $cascade;
|
|
|
|
/**
|
|
* The fetching strategy to use for the association.
|
|
*
|
|
* @var string
|
|
*
|
|
* @Enum({"LAZY", "EAGER", "EXTRA_LAZY"})
|
|
*/
|
|
public $fetch = 'LAZY';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $inversedBy;
|
|
}
|