Skip to content

Commit

Permalink
Changed target type to integer from string
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Mar 15, 2016
1 parent 1707ac0 commit 6bb087b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Entity/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Log
protected $time;

/**
* @var mixed targetId
* @var int targetId
*/
protected $target;

Expand Down Expand Up @@ -80,7 +80,7 @@ public function getId()
}

/**
* @param mixed $target
* @param int $target
*
* @return $this
*/
Expand All @@ -92,7 +92,7 @@ public function setTarget($target)
}

/**
* @return mixed
* @return int
*/
public function getTarget()
{
Expand Down
3 changes: 3 additions & 0 deletions Event/TrackableEventInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
*/
interface TrackableEventInterface
{
/**
* @return int
*/
public function getTargetIdentifier();
}
3 changes: 1 addition & 2 deletions Resources/config/doctrine/Log.orm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Happyr\EventTrackerBundle\Entity\Log:
generator: {strategy: AUTO}
fields:
target:
type: string
length: 255
type: integer
action:
type: string
length: 50
Expand Down

0 comments on commit 6bb087b

Please sign in to comment.