1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Remove old "CLASSNAME" constants from test models

This commit is contained in:
Luís Cobucci 2016-12-08 18:15:48 +01:00
parent fda6fdd9fb
commit 62d122bd54
No known key found for this signature in database
GPG Key ID: 8042585A7DBC92E1
67 changed files with 7 additions and 189 deletions

View File

@ -8,7 +8,6 @@ use Doctrine\DBAL\Types\Type;
class CustomIdObjectType extends Type
{
const NAME = 'CustomIdObject';
const CLASSNAME = __CLASS__;
/**
* {@inheritdoc}

View File

@ -10,8 +10,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class Action
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="string")

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class Address
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -17,8 +17,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
abstract class Attraction
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class AttractionContactInfo extends AttractionInfo
{
const CLASSNAME = __CLASS__;
/**
* @Column(unique=true)
*/

View File

@ -14,8 +14,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
abstract class AttractionInfo
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class AttractionLocationInfo extends AttractionInfo
{
const CLASSNAME = __CLASS__;
/**
* @Column(unique=true)
*/

View File

@ -7,5 +7,4 @@ namespace Doctrine\Tests\Models\Cache;
*/
class Bar extends Attraction
{
const CLASSNAME = __CLASS__;
}
}

View File

@ -7,5 +7,4 @@ namespace Doctrine\Tests\Models\Cache;
*/
class Beach extends Attraction
{
const CLASSNAME = __CLASS__;
}
}

View File

@ -11,8 +11,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class City
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class Client
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -10,8 +10,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class ComplexAction
{
const CLASSNAME = __CLASS__;
/**
* @Column
*/

View File

@ -9,8 +9,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class Country
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -9,8 +9,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class Flight
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Cache

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class Login
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -9,8 +9,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class Person
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -7,5 +7,4 @@ namespace Doctrine\Tests\Models\Cache;
*/
class Restaurant extends Attraction
{
const CLASSNAME = __CLASS__;
}
}

View File

@ -11,8 +11,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class State
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -10,8 +10,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class Token
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="string")

View File

@ -11,8 +11,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class Travel
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -11,8 +11,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class Traveler
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -9,8 +9,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class TravelerProfile
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -9,8 +9,6 @@ namespace Doctrine\Tests\Models\Cache;
*/
class TravelerProfileInfo
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -10,8 +10,6 @@ use Doctrine\Tests\DbalTypes\CustomIdObject;
*/
class CustomIdObjectTypeChild
{
const CLASSNAME = __CLASS__;
/**
* @Id @Column(type="CustomIdObject")
*

View File

@ -11,8 +11,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class CustomIdObjectTypeParent
{
const CLASSNAME = __CLASS__;
/**
* @Id @Column(type="CustomIdObject")
*

View File

@ -7,5 +7,4 @@ namespace Doctrine\Tests\Models\DDC2504;
*/
class DDC2504ChildClass extends DDC2504RootClass
{
const CLASSNAME = __CLASS__;
}

View File

@ -9,8 +9,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class DDC2504OtherClass
{
const CLASSNAME = __CLASS__;
/**
* @Column(type="integer")
* @Id @GeneratedValue

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\Models\DDC2825;
/** @Entity @Table(name="explicit_table", schema="explicit_schema") */
class ExplicitSchemaAndTable
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") @GeneratedValue(strategy="AUTO") */
public $id;
}

View File

@ -10,8 +10,6 @@ namespace Doctrine\Tests\Models\DDC2825;
*/
class SchemaAndTableInTableName
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") @GeneratedValue(strategy="AUTO") */
public $id;
}
}

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\DDC3346;
*/
class DDC3346Article
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="integer")

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\DDC3346;
*/
class DDC3346Author
{
const CLASSNAME = __CLASS__;
/**
* @Id @Column(type="integer")
* @GeneratedValue

View File

@ -12,8 +12,6 @@ use Doctrine\Tests\Models\DDC3597\Embeddable\DDC3597Dimension;
*/
class DDC3597Image extends DDC3597Media {
const CLASSNAME = __CLASS__;
/**
* @var DDC3597Dimension
* @Embedded(class = "Doctrine\Tests\Models\DDC3597\Embeddable\DDC3597Dimension", columnPrefix = false)

View File

@ -4,14 +4,12 @@ namespace Doctrine\Tests\Models\DDC3597;
/**
* Description of Media
*
*
* @author Volker von Hoesslin <volker.von.hoesslin@empora.com>
* @Entity
*/
abstract class DDC3597Media extends DDC3597Root {
const CLASSNAME = __CLASS__;
/**
* @var string
*

View File

@ -15,8 +15,6 @@ use Doctrine\ORM\Mapping\DiscriminatorMap;
*/
abstract class DDC3597Root {
const CLASSNAME = __CLASS__;
/**
* @var int
*

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\Models\DDC3699;
/** @Entity @Table(name="ddc3699_child") */
class DDC3699Child extends DDC3699Parent
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") */
public $id;

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\Models\DDC3699;
/** @MappedSuperclass */
abstract class DDC3699Parent
{
const CLASSNAME = __CLASS__;
/** @Column(type="string") */
public $parentField;
}
}

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\DDC3699;
*/
class DDC3699RelationMany
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") */
public $id;

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\DDC3699;
*/
class DDC3699RelationOne
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") */
public $id;

View File

@ -7,8 +7,6 @@ namespace Doctrine\Tests\Models\DirectoryTree;
*/
abstract class AbstractContentItem
{
const CLASSNAME = __CLASS__;
/**
* @Id @Column(type="integer") @GeneratedValue
*/

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\DirectoryTree;
*/
class File extends AbstractContentItem
{
const CLASSNAME = __CLASS__;
/** @Column(type="string") */
protected $extension = "html";

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\Generic;
*/
class DateTimeModel
{
const CLASSNAME = __CLASS__;
/**
* @Id @Column(type="integer")
* @GeneratedValue

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\Models\Hydration;
/** @Entity */
class EntityWithArrayDefaultArrayValueM2M
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") @GeneratedValue(strategy="AUTO") */
public $id;

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\Models\Hydration;
/** @Entity */
class SimpleEntity
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") @GeneratedValue(strategy="AUTO") */
public $id;
}

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\Models\MixedToOneIdentity;
/** @Entity */
class CompositeToOneKeyState
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="string")

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\Models\MixedToOneIdentity;
/** @Entity */
class Country
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="string") @GeneratedValue(strategy="NONE") */
public $country;
}

View File

@ -10,8 +10,6 @@ namespace Doctrine\Tests\Models\NonPublicSchemaJoins;
*/
class User
{
const CLASSNAME = __CLASS__;
/**
* @Column(type="integer")
* @Id

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\Models\OneToOneSingleTableInheritance;
/** @Entity */
class Cat extends Pet
{
const CLASSNAME = __CLASS__;
/**
* @OneToOne(targetEntity="LitterBox")
*

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\OneToOneSingleTableInheritance;
*/
class LitterBox
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") @GeneratedValue(strategy="AUTO") */
public $id;
}
}

View File

@ -10,8 +10,6 @@ namespace Doctrine\Tests\Models\OneToOneSingleTableInheritance;
*/
abstract class Pet
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") @GeneratedValue(strategy="AUTO") */
public $id;
}

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\Models\Reflection;
class ClassWithMixedProperties extends ParentClass
{
const CLASSNAME = __CLASS__;
public static $staticProperty = 'staticProperty';
public $publicProperty = 'publicProperty';

View File

@ -4,7 +4,5 @@ namespace Doctrine\Tests\Models\Reflection;
class ParentClass
{
const CLASSNAME = __CLASS__;
private $privatePropertyOverride = 'privatePropertyOverride';
}

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\Tweet;
*/
class Tweet
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -10,8 +10,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class User
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\Tweet;
*/
class UserList
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\VersionedManyToOne;
*/
class Article
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(name="id", type="integer")

View File

@ -8,8 +8,6 @@ namespace Doctrine\Tests\Models\VersionedManyToOne;
*/
class Category
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(name="id", type="integer")

View File

@ -76,8 +76,6 @@ class DDC2494Test extends \Doctrine\Tests\OrmFunctionalTestCase
*/
class DDC2494Currency
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="integer", type="ddc2494_tinyint")
@ -124,8 +122,6 @@ class DDC2494Currency
*/
class DDC2494Campaign
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -67,9 +67,6 @@ class DDC2579Test extends \Doctrine\Tests\OrmFunctionalTestCase
*/
class DDC2579Entity
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="ddc2579")
@ -102,8 +99,6 @@ class DDC2579Entity
*/
class DDC2579EntityAssoc
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @ManyToOne(targetEntity="DDC2579AssocAssoc")
@ -122,8 +117,6 @@ class DDC2579EntityAssoc
*/
class DDC2579AssocAssoc
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="ddc2579")
@ -140,7 +133,6 @@ class DDC2579AssocAssoc
class DDC2579Type extends StringType
{
const NAME = 'ddc2579';
const CLASSNAME = __CLASS__;
/**
* {@inheritdoc}
@ -166,8 +158,6 @@ class DDC2579Type extends StringType
class DDC2579Id
{
const CLASSNAME = __CLASS__;
private $val;
public function __construct($val)

View File

@ -100,8 +100,6 @@ class DDC2825Test extends \Doctrine\Tests\OrmFunctionalTestCase
*/
class DDC2825ClassWithImplicitlyDefinedSchemaAndQuotedTableName
{
const CLASSNAME = __CLASS__;
/**
* @Id @GeneratedValue
* @Column(type="integer")

View File

@ -119,8 +119,6 @@ class DDC2862Test extends \Doctrine\Tests\OrmFunctionalTestCase
*/
class DDC2862Driver
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue
@ -196,8 +194,6 @@ class DDC2862Driver
*/
class DDC2862User
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -72,8 +72,6 @@ class DDC3192Test extends \Doctrine\Tests\OrmFunctionalTestCase
*/
class DDC3192Currency
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="ddc3192_currency_code")
@ -99,8 +97,6 @@ class DDC3192Currency
*/
class DDC3192Transaction
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -58,30 +58,24 @@ class DDC3300Test extends \Doctrine\Tests\OrmFunctionalTestCase
*/
abstract class DDC3300Person
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="integer") @GeneratedValue(strategy="AUTO") */
public $id;
}
interface DDC3300BossInterface
{
const INTERFACENAME = __CLASS__;
}
/** @Entity */
class DDC3300Boss extends DDC3300Person implements DDC3300BossInterface
{
const CLASSNAME = __CLASS__;
}
interface DDC3300EmployeeInterface
{
const INTERFACENAME = __CLASS__;
}
/** @Entity */
class DDC3300Employee extends DDC3300Person implements DDC3300EmployeeInterface
{
const CLASSNAME = __CLASS__;
}

View File

@ -23,8 +23,6 @@ class DDC3582Test extends \Doctrine\Tests\OrmFunctionalTestCase
/** @Entity */
class DDC3582Entity
{
const CLASSNAME = __CLASS__;
/** @Column @Id */
private $id;
@ -41,8 +39,6 @@ class DDC3582Entity
/** @Embeddable */
class DDC3582Embeddable1
{
const CLASSNAME = __CLASS__;
/** @Embedded(class="DDC3582Embeddable2") @var DDC3582Embeddable2 */
public $embeddable2;
@ -52,8 +48,6 @@ class DDC3582Embeddable1
/** @Embeddable */
class DDC3582Embeddable2
{
const CLASSNAME = __CLASS__;
/** @Embedded(class="DDC3582Embeddable3") @var DDC3582Embeddable3 */
public $embeddable3;
@ -63,8 +57,6 @@ class DDC3582Embeddable2
/** @Embeddable */
class DDC3582Embeddable3
{
const CLASSNAME = __CLASS__;
/** @Column */
public $embeddedValue = 'foo';
}

View File

@ -74,8 +74,6 @@ class DDC3634Test extends OrmFunctionalTestCase {
/** @Entity */
class DDC3634Entity
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="bigint") @GeneratedValue(strategy="AUTO") */
public $id;
}
@ -90,8 +88,6 @@ class DDC3634Entity
*/
class DDC3634JTIBaseEntity
{
const CLASSNAME = __CLASS__;
/** @Id @Column(type="bigint") @GeneratedValue(strategy="AUTO") */
public $id;
}
@ -99,7 +95,6 @@ class DDC3634JTIBaseEntity
/** @Entity */
class DDC3634JTIChildEntity extends DDC3634JTIBaseEntity
{
const CLASSNAME = __CLASS__;
}
class DDC3634LastInsertIdMockingConnection extends Connection

View File

@ -60,8 +60,6 @@ class DDC5684Test extends \Doctrine\Tests\OrmFunctionalTestCase
class DDC5684ObjectIdType extends DBALTypes\IntegerType
{
const CLASSNAME = __CLASS__;
public function convertToPHPValue($value, AbstractPlatform $platform)
{
return new DDC5684ObjectId($value);
@ -85,8 +83,6 @@ class DDC5684ObjectIdType extends DBALTypes\IntegerType
class DDC5684ObjectId
{
const CLASSNAME = __CLASS__;
public $value;
public function __construct($value)
@ -106,8 +102,6 @@ class DDC5684ObjectId
*/
class DDC5684Object
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type=Doctrine\Tests\ORM\Functional\Ticket\DDC5684ObjectIdType::class)

View File

@ -336,8 +336,6 @@ class ValueObjectsTest extends OrmFunctionalTestCase
*/
class DDC93Person
{
const CLASSNAME = __CLASS__;
/** @Id @GeneratedValue @Column(type="integer") */
public $id;
@ -407,8 +405,6 @@ class DDC93Car extends DDC93Vehicle
*/
class DDC93Country
{
const CLASSNAME = __CLASS__;
/**
* @Column(type="string", nullable=true)
*/
@ -425,8 +421,6 @@ class DDC93Country
*/
class DDC93Address
{
const CLASSNAME = __CLASS__;
/**
* @Column(type="string")
*/
@ -464,8 +458,6 @@ class DDC93Customer
/** @Embeddable */
class DDC93ContactInfo
{
const CLASSNAME = __CLASS__;
/**
* @Column(type="string")
*/
@ -479,8 +471,6 @@ class DDC93ContactInfo
*/
class DDC3028PersonWithPrefix
{
const CLASSNAME = __CLASS__;
/** @Embedded(class="DDC3028Id", columnPrefix = "foobar_") */
public $id;
@ -499,8 +489,6 @@ class DDC3028PersonWithPrefix
*/
class DDC3028PersonEmptyPrefix
{
const CLASSNAME = __CLASS__;
/** @Embedded(class="DDC3028Id", columnPrefix = "") */
public $id;
@ -519,8 +507,6 @@ class DDC3028PersonEmptyPrefix
*/
class DDC3028PersonPrefixFalse
{
const CLASSNAME = __CLASS__;
/** @Embedded(class="DDC3028Id", columnPrefix = false) */
public $id;
@ -535,8 +521,6 @@ class DDC3028PersonPrefixFalse
*/
class DDC3028Id
{
const CLASSNAME = __CLASS__;
/**
* @Id @Column(type="string")
*/
@ -553,8 +537,6 @@ class DDC3028Id
*/
class DDC3028NestedEmbeddable
{
const CLASSNAME = __CLASS__;
/** @Embedded(class="DDC3028Id", columnPrefix = "foo_") */
public $nestedWithPrefix;

View File

@ -117,8 +117,6 @@ class AttachEntityListenersListenerTest extends OrmTestCase
*/
class AttachEntityListenersListenerTestFooEntity
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="integer")
@ -133,8 +131,6 @@ class AttachEntityListenersListenerTestFooEntity
*/
class AttachEntityListenersListenerTestBarEntity
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="integer")
@ -145,8 +141,6 @@ class AttachEntityListenersListenerTestBarEntity
class AttachEntityListenersListenerTestListener
{
const CLASSNAME = __CLASS__;
public $calls;
public function prePersist()
@ -167,8 +161,6 @@ class AttachEntityListenersListenerTestListener
class AttachEntityListenersListenerTestListener2
{
const CLASSNAME = __CLASS__;
public $calls;
public function prePersist()