Skip to content

Commit

Permalink
Add attributes (#17)
Browse files Browse the repository at this point in the history
Co-authored-by: Artem Henvald <[email protected]>
  • Loading branch information
fre5h and Artem Henvald authored Jan 21, 2022
1 parent 0abf9bb commit 35249dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Model/Credentials/CredentialsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ trait CredentialsTrait
/**
* @ORM\Column(type="datetimetz", nullable=true)
*/
#[ORM\Column(type: 'datetimetz', nullable: true)]
protected ?\DateTime $credentialsLastChangedAt = null;

/**
Expand Down
2 changes: 2 additions & 0 deletions Model/Timestampable/TimestampableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ trait TimestampableTrait
/**
* @ORM\Column(type="datetimetz_immutable")
*/
#[ORM\Column(type: 'datetimetz_immutable')]
protected \DateTimeImmutable $createdAt;

/**
* @ORM\Column(type="datetimetz")
*
* @Gedmo\Timestampable(on="update")
*/
#[ORM\Column(type: 'datetimetz')]
protected \DateTime $updatedAt;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*
* @Annotation
*/
#[\Attribute]
class PasswordMeetSpecialRequirements extends Constraint
{
public const PASSWORD_DOES_NOT_MEET_SPECIAL_REQUIREMENTS = 'PASSWORD_DOES_NOT_MEET_SPECIAL_REQUIREMENTS';
Expand Down

0 comments on commit 35249dd

Please sign in to comment.