-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate doctrine test entities to attributes
- Loading branch information
1 parent
d64a3f1
commit 462cc3a
Showing
5 changed files
with
27 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,31 +16,22 @@ | |
use CoopTilleuls\ForgotPasswordBundle\Entity\AbstractPasswordToken; | ||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
/** | ||
* @ORM\Entity | ||
* | ||
* @author Vincent CHALAMON <[email protected]> | ||
*/ | ||
#[ORM\Entity] | ||
final class PasswordToken extends AbstractPasswordToken | ||
{ | ||
/** | ||
* @var int | ||
* | ||
* @ORM\Id | ||
* | ||
* @ORM\Column(type="integer") | ||
* | ||
* @ORM\GeneratedValue(strategy="AUTO") | ||
*/ | ||
#[ORM\Id] | ||
#[ORM\Column(type: 'integer')] | ||
#[ORM\GeneratedValue(strategy: 'AUTO')] | ||
private $id; | ||
|
||
/** | ||
* @var User | ||
* | ||
* @ORM\ManyToOne(targetEntity="User") | ||
* | ||
* @ORM\JoinColumn(nullable=false, name="user_id") | ||
*/ | ||
#[ORM\ManyToOne(targetEntity: 'User')] | ||
#[ORM\JoinColumn(nullable: false, name: 'user_id')] | ||
private $user; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,43 +16,33 @@ | |
use Doctrine\ORM\Mapping as ORM; | ||
use Symfony\Component\Security\Core\User\UserInterface; | ||
|
||
/** | ||
* @ORM\Entity | ||
* | ||
* @author Vincent CHALAMON <[email protected]> | ||
*/ | ||
#[ORM\Entity] | ||
final class User implements UserInterface | ||
{ | ||
/** | ||
* @var int | ||
* | ||
* @ORM\Id | ||
* | ||
* @ORM\Column(type="integer") | ||
* | ||
* @ORM\GeneratedValue(strategy="AUTO") | ||
*/ | ||
#[ORM\Id] | ||
#[ORM\Column(type: 'integer')] | ||
#[ORM\GeneratedValue(strategy: 'AUTO')] | ||
private $id; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @ORM\Column(type="string") | ||
*/ | ||
#[ORM\Column(type: 'string')] | ||
private $email; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @ORM\Column(type="string") | ||
*/ | ||
#[ORM\Column(type: 'string')] | ||
private $username; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @ORM\Column(type="string") | ||
*/ | ||
#[ORM\Column(type: 'string')] | ||
private $password; | ||
|
||
/** | ||
|