Skip to content

Commit

Permalink
Ajout des uses nécessaires
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume DUBOST committed Mar 20, 2019
1 parent 1fdda40 commit c65a212
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/AutoIncrementID.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

namespace ETNA\Doctrine\Extensions;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Column;

trait AutoIncrementID
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/CreatedAt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ETNA\Doctrine\Extensions;

use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\PrePersist;

trait CreatedAt
{
/**
Expand Down
5 changes: 4 additions & 1 deletion src/DoNotDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace ETNA\Doctrine\Extensions;

use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\PreRemove;

trait DoNotDelete
{
/**
Expand Down Expand Up @@ -43,7 +46,7 @@ public function setDeletedAt($datetime)
}

/**
* @preRemove
* @PreRemove
*/
public function canNotDelete()
{
Expand Down
4 changes: 4 additions & 0 deletions src/UpdatedAt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

namespace ETNA\Doctrine\Extensions;

use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\PrePersist;
use Doctrine\ORM\Mapping\PreUpdate;

trait UpdatedAt
{
/**
Expand Down

0 comments on commit c65a212

Please sign in to comment.