Skip to content

Commit 39bd038

Browse files
committed
Moving mappings to the annotations
1 parent 81ab04c commit 39bd038

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

src/Uecode/Bundle/ApiKeyBundle/Model/ApiKeyUser.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@
44

55
use FOS\UserBundle\Model\User as BaseUser;
66
use Doctrine\ORM\Mapping as ORM;
7-
87
use Symfony\Component\Security\Core\User\UserInterface as BaseUserInterface;
98
use FOS\UserBundle\Model\UserInterface;
109
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
1110
use Symfony\Component\Validator\Constraints as Assert;
11+
use Doctrine\ORM\Mapping\MappedSuperclass;
1212

13+
/**
14+
* @MappedSuperclass
15+
*/
1316
class ApiKeyUser extends BaseUser implements UserInterface, AdvancedUserInterface, BaseUserInterface
1417
{
18+
/**
19+
* @ORM\Column(name="api_key", type="string", length=255, nullable=true)
20+
*/
1521
private $apiKey;
1622

1723
public function __construct()

src/Uecode/Bundle/ApiKeyBundle/Resources/config/doctrine/model/User.orm.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)