Doctrine entities mapping fix. Excessive schemas removed.
This commit is contained in:
parent
aeb59c5a88
commit
1a5ce08fcd
|
@ -9,7 +9,7 @@ use Skobkin\Bundle\PointToolsBundle\Entity\User;
|
||||||
/**
|
/**
|
||||||
* Comment
|
* Comment
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="posts.comments", schema="posts", indexes={
|
* @ORM\Table(name="comments", schema="posts", indexes={
|
||||||
* @ORM\Index(name="idx_comment_created_at", columns={"created_at"})
|
* @ORM\Index(name="idx_comment_created_at", columns={"created_at"})
|
||||||
* })
|
* })
|
||||||
* @ORM\Entity
|
* @ORM\Entity
|
||||||
|
@ -80,7 +80,7 @@ class Comment
|
||||||
* @var File[]|ArrayCollection
|
* @var File[]|ArrayCollection
|
||||||
*
|
*
|
||||||
* @ORM\ManyToMany(targetEntity="Skobkin\Bundle\PointToolsBundle\Entity\Blogs\File", fetch="EXTRA_LAZY", cascade={"persist"})
|
* @ORM\ManyToMany(targetEntity="Skobkin\Bundle\PointToolsBundle\Entity\Blogs\File", fetch="EXTRA_LAZY", cascade={"persist"})
|
||||||
* @ORM\JoinTable(name="posts.comments_files", schema="posts",
|
* @ORM\JoinTable(name="comments_files", schema="posts",
|
||||||
* joinColumns={@ORM\JoinColumn(name="comment_id")},
|
* joinColumns={@ORM\JoinColumn(name="comment_id")},
|
||||||
* inverseJoinColumns={@ORM\JoinColumn(name="file_id")}
|
* inverseJoinColumns={@ORM\JoinColumn(name="file_id")}
|
||||||
* )
|
* )
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* File
|
* File
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="posts.files", schema="posts")
|
* @ORM\Table(name="files", schema="posts")
|
||||||
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\Blogs\FileRepository")
|
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\Blogs\FileRepository")
|
||||||
*/
|
*/
|
||||||
class File
|
class File
|
||||||
|
|
|
@ -9,7 +9,7 @@ use Skobkin\Bundle\PointToolsBundle\Entity\User;
|
||||||
/**
|
/**
|
||||||
* Post
|
* Post
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="posts.posts", schema="posts", indexes={
|
* @ORM\Table(name="posts", schema="posts", indexes={
|
||||||
* @ORM\Index(name="idx_post_created_at", columns={"created_at"}),
|
* @ORM\Index(name="idx_post_created_at", columns={"created_at"}),
|
||||||
* @ORM\Index(name="idx_post_private", columns={"private"}),
|
* @ORM\Index(name="idx_post_private", columns={"private"}),
|
||||||
* })
|
* })
|
||||||
|
@ -83,7 +83,7 @@ class Post
|
||||||
* @var File[]|ArrayCollection
|
* @var File[]|ArrayCollection
|
||||||
*
|
*
|
||||||
* @ORM\ManyToMany(targetEntity="Skobkin\Bundle\PointToolsBundle\Entity\Blogs\File", fetch="EXTRA_LAZY", cascade={"persist"})
|
* @ORM\ManyToMany(targetEntity="Skobkin\Bundle\PointToolsBundle\Entity\Blogs\File", fetch="EXTRA_LAZY", cascade={"persist"})
|
||||||
* @ORM\JoinTable(name="posts.posts_files", schema="posts",
|
* @ORM\JoinTable(name="posts_files", schema="posts",
|
||||||
* joinColumns={@ORM\JoinColumn(name="post_id")},
|
* joinColumns={@ORM\JoinColumn(name="post_id")},
|
||||||
* inverseJoinColumns={@ORM\JoinColumn(name="file_id")}
|
* inverseJoinColumns={@ORM\JoinColumn(name="file_id")}
|
||||||
* )
|
* )
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* PostTag
|
* PostTag
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="posts.posts_tags", schema="posts")
|
* @ORM\Table(name="posts_tags", schema="posts")
|
||||||
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\Blogs\PostTagRepository")
|
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\Blogs\PostTagRepository")
|
||||||
*/
|
*/
|
||||||
class PostTag
|
class PostTag
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* Tag
|
* Tag
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="posts.tags", schema="posts", indexes={
|
* @ORM\Table(name="tags", schema="posts", indexes={
|
||||||
* @ORM\Index(name="idx_tag_text", columns={"text"})
|
* @ORM\Index(name="idx_tag_text", columns={"text"})
|
||||||
* })
|
* })
|
||||||
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\Blogs\TagRepository")
|
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\Blogs\TagRepository")
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* Subscription
|
* Subscription
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="subscriptions.subscriptions", schema="subscriptions", uniqueConstraints={
|
* @ORM\Table(name="subscriptions", schema="subscriptions", uniqueConstraints={
|
||||||
* @ORM\UniqueConstraint(name="subscription_unique", columns={"author_id", "subscriber_id"})}
|
* @ORM\UniqueConstraint(name="subscription_unique", columns={"author_id", "subscriber_id"})}
|
||||||
* )
|
* )
|
||||||
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\SubscriptionRepository")
|
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\SubscriptionRepository")
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* SubscriptionEvent
|
* SubscriptionEvent
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="subscriptions.log", schema="subscriptions", indexes={
|
* @ORM\Table(name="log", schema="subscriptions", indexes={
|
||||||
* @ORM\Index(name="author_idx", columns={"author_id"}),
|
* @ORM\Index(name="author_idx", columns={"author_id"}),
|
||||||
* @ORM\Index(name="subscriber_idx", columns={"subscriber_id"}),
|
* @ORM\Index(name="subscriber_idx", columns={"subscriber_id"}),
|
||||||
* @ORM\Index(name="date_idx", columns={"date"})
|
* @ORM\Index(name="date_idx", columns={"date"})
|
||||||
|
|
|
@ -8,7 +8,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="users.users", schema="users")
|
* @ORM\Table(name="users", schema="users")
|
||||||
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\UserRepository")
|
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\UserRepository")
|
||||||
* @ORM\HasLifecycleCallbacks
|
* @ORM\HasLifecycleCallbacks
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* UserRenameEvent
|
* UserRenameEvent
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="users.rename_log", schema="users", indexes={
|
* @ORM\Table(name="rename_log", schema="users", indexes={
|
||||||
* @ORM\Index(name="idx_rename_log_date", columns={"date"}),
|
* @ORM\Index(name="idx_rename_log_date", columns={"date"}),
|
||||||
* @ORM\Index(name="idx_rename_log_old_login", columns={"old_login"})
|
* @ORM\Index(name="idx_rename_log_old_login", columns={"old_login"})
|
||||||
* })
|
* })
|
||||||
|
|
Loading…
Reference in a new issue