Skip to content

Instantly share code, notes, and snippets.

@JiNexus
Last active April 8, 2019 01:38
Show Gist options
  • Save JiNexus/8305b52027e622e51c56f3dc9a90c97f to your computer and use it in GitHub Desktop.
Save JiNexus/8305b52027e622e51c56f3dc9a90c97f to your computer and use it in GitHub Desktop.

Revisions

  1. JiNexus revised this gist Apr 8, 2019. 1 changed file with 0 additions and 23 deletions.
    23 changes: 0 additions & 23 deletions UserAddress.php
    Original file line number Diff line number Diff line change
    @@ -1,23 +0,0 @@
    <?php

    namespace System\Entity;

    use Doctrine\ORM\Mapping as ORM;

    /**
    * Class UserAddress
    * @package System\Entity
    * @ORM\Entity()
    * @ORM\Table(name="`user_address`")
    */
    class UserAddress
    {
    /**
    * @ORM\Id()
    * @ORM\ManyToOne(targetEntity="System\Entity\User")
    * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
    */
    private $user;

    ...
    }
  2. JiNexus revised this gist Apr 6, 2019. 3 changed files with 0 additions and 3 deletions.
    1 change: 0 additions & 1 deletion User.php
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@

    namespace System\Entity;

    use DateTime;
    use Doctrine\ORM\Mapping as ORM;

    /**
    1 change: 0 additions & 1 deletion UserAddress.php
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@

    namespace System\Entity;

    use DateTime;
    use Doctrine\ORM\Mapping as ORM;

    /**
    1 change: 0 additions & 1 deletion UserInformation.php
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@

    namespace System\Entity;

    use DateTime;
    use Doctrine\ORM\Mapping as ORM;

    /**
  3. JiNexus revised this gist Apr 6, 2019. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion UserAddress.php
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    use Doctrine\ORM\Mapping as ORM;

    /**
    * Class User
    * Class UserAddress
    * @package System\Entity
    * @ORM\Entity()
    * @ORM\Table(name="`user_address`")
    2 changes: 1 addition & 1 deletion UserInformation.php
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    use Doctrine\ORM\Mapping as ORM;

    /**
    * Class User
    * Class UserInformation
    * @package System\Entity
    * @ORM\Entity()
    * @ORM\Table(name="`user_information`")
  4. JiNexus revised this gist Apr 6, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions UserAddress.php
    Original file line number Diff line number Diff line change
    @@ -9,9 +9,9 @@
    * Class User
    * @package System\Entity
    * @ORM\Entity()
    * @ORM\Table(name="`user_information`")
    * @ORM\Table(name="`user_address`")
    */
    class UserInformation
    class UserAddress
    {
    /**
    * @ORM\Id()
  5. JiNexus revised this gist Apr 6, 2019. No changes.
  6. JiNexus created this gist Apr 6, 2019.
    24 changes: 24 additions & 0 deletions User.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    <?php

    namespace System\Entity;

    use DateTime;
    use Doctrine\ORM\Mapping as ORM;

    /**
    * Class User
    * @package System\Entity
    * @ORM\Entity()
    * @ORM\Table(name="`user`")
    */
    class User
    {
    /**
    * @ORM\Id()
    * @ORM\GeneratedValue(strategy="AUTO")
    * @ORM\Column(name="id", type="bigint", options={"unsigned":true})
    */
    private $id;

    ...
    }
    24 changes: 24 additions & 0 deletions UserAddress.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    <?php

    namespace System\Entity;

    use DateTime;
    use Doctrine\ORM\Mapping as ORM;

    /**
    * Class User
    * @package System\Entity
    * @ORM\Entity()
    * @ORM\Table(name="`user_information`")
    */
    class UserInformation
    {
    /**
    * @ORM\Id()
    * @ORM\ManyToOne(targetEntity="System\Entity\User")
    * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
    */
    private $user;

    ...
    }
    24 changes: 24 additions & 0 deletions UserInformation.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    <?php

    namespace System\Entity;

    use DateTime;
    use Doctrine\ORM\Mapping as ORM;

    /**
    * Class User
    * @package System\Entity
    * @ORM\Entity()
    * @ORM\Table(name="`user_information`")
    */
    class UserInformation
    {
    /**
    * @ORM\Id()
    * @ORM\OneToOne(targetEntity="System\Entity\User")
    * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
    */
    private $user;

    ...
    }