1
0
Fork 0
mirror of synced 2025-04-03 05:13:37 +03:00

Fix capitalization of mapping annotations in PaginationTestCase.php

This commit is contained in:
Bill Schaller 2015-03-19 16:47:04 -04:00
parent 5c4b6a2140
commit 591fd00d73

View file

@ -24,7 +24,7 @@ abstract class PaginationTestCase extends OrmTestCase
class MyBlogPost class MyBlogPost
{ {
/** @Id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
/** /**
* @ManyToOne(targetEntity="Author") * @ManyToOne(targetEntity="Author")
@ -34,7 +34,7 @@ class MyBlogPost
* @ManyToOne(targetEntity="Category") * @ManyToOne(targetEntity="Category")
*/ */
public $category; public $category;
/** @column(type="string") */ /** @Column(type="string") */
public $title; public $title;
} }
@ -44,7 +44,7 @@ class MyBlogPost
class MyAuthor class MyAuthor
{ {
/** @Id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
} }
@ -55,7 +55,7 @@ class MyAuthor
class MyCategory class MyCategory
{ {
/** @id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
} }
@ -67,7 +67,7 @@ class MyCategory
class BlogPost class BlogPost
{ {
/** @Id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
/** /**
* @ManyToOne(targetEntity="Author") * @ManyToOne(targetEntity="Author")
@ -85,7 +85,7 @@ class BlogPost
class Author class Author
{ {
/** @Id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
/** @Column(type="string") */ /** @Column(type="string") */
public $name; public $name;
@ -98,7 +98,7 @@ class Author
class Person class Person
{ {
/** @Id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
/** @Column(type="string") */ /** @Column(type="string") */
public $name; public $name;
@ -113,7 +113,7 @@ class Person
class Category class Category
{ {
/** @id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
} }
@ -123,7 +123,7 @@ class Category
class Group class Group
{ {
/** @Id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
/** @ManyToMany(targetEntity="User", mappedBy="groups") */ /** @ManyToMany(targetEntity="User", mappedBy="groups") */
public $users; public $users;
@ -133,7 +133,7 @@ class Group
class User class User
{ {
/** @Id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
/** /**
* @ManyToMany(targetEntity="Group", inversedBy="users") * @ManyToMany(targetEntity="Group", inversedBy="users")
@ -153,19 +153,19 @@ class User
/** @Entity */ /** @Entity */
class Avatar class Avatar
{ {
/** @Id @column(type="integer") @generatedValue */ /** @Id @Column(type="integer") @GeneratedValue */
public $id; public $id;
/** /**
* @OneToOne(targetEntity="User", inversedBy="avatar") * @OneToOne(targetEntity="User", inversedBy="avatar")
* @JoinColumn(name="user_id", referencedColumnName="id") * @JoinColumn(name="user_id", referencedColumnName="id")
*/ */
public $user; public $user;
/** @column(type="string", length=255) */ /** @Column(type="string", length=255) */
public $image; public $image;
/** @column(type="integer") */ /** @Column(type="integer") */
public $image_height; public $image_height;
/** @column(type="integer") */ /** @Column(type="integer") */
public $image_width; public $image_width;
/** @column(type="string", length=255) */ /** @Column(type="string", length=255) */
public $image_alt_desc; public $image_alt_desc;
} }