[MsgPhpUserBundle] add post-install.txt

This commit is contained in:
Roland Franssen
2018-05-19 13:39:16 +02:00
parent 91cf28bf87
commit 7cf1eabf89
4 changed files with 8 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Entity\User;
use Doctrine\ORM\Mapping as ORM;
use MsgPhp\User\Entity\User as BaseUser;
use MsgPhp\User\UserIdInterface;
/**
* @ORM\Entity()
*/
class User extends BaseUser
{
/** @ORM\Id() @ORM\GeneratedValue() @ORM\Column(type="msgphp_user_id") */
private $id;
public function __construct(UserIdInterface $id)
{
$this->id = $id;
}
public function getId(): UserIdInterface
{
return $this->id;
}
}