Skip to content

Commit

Permalink
Update RepositoryAbstract.php
Browse files Browse the repository at this point in the history
Remove EntityInterface dependency
  • Loading branch information
williamespindola committed Sep 23, 2015
1 parent 07bfa71 commit 7dc86ad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Repository/RepositoryAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace WilliamEspindola\Field\Repository;

use WilliamEspindola\Field\Entity\EntityInterface;
use WilliamEspindola\Field\Storage\ORM\StorageORMInterface;

abstract class RepositoryAbstract
Expand Down Expand Up @@ -31,15 +30,15 @@ public function findBy(Array $criteria, array $optimization)

/**
* @param array $criteria
* @return EntityInterface
* @return object
*/
public function find($id)
{
return $this->getStorage()->find($id);
}

/**
* @param EntityInterface|Object $data
* @param Object $data
* @return boolean
*/
public function save($data)
Expand All @@ -51,10 +50,10 @@ public function save($data)
}

/**
* @param EntityInterface $entity
* @param Object $entity
* @return boolean
*/
public function remove(EntityInterface $entity)
public function remove($entity)
{
$this->getStorage()->remove($entity);
$this->getStorage()->flush();
Expand Down

0 comments on commit 7dc86ad

Please sign in to comment.