Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag authored and fprochazka committed Aug 2, 2013
1 parent 6a4a2d4 commit b62876b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kdyby/Doctrine/EntityDao.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ public function safePersist($entity)


/**
* @param object|array|\Doctrine\Common\Collections\Collection $entity
* @param object|array|\Traversable $entity
* @param bool $flush
* @throws InvalidArgumentException
*/
public function delete($entity, $flush = Persistence\ObjectDao::FLUSH)
{
if (is_array($entity) || $entity instanceof \Traversable || $entity instanceof Collection) {
if (is_array($entity) || $entity instanceof \Traversable) {
foreach ($entity as $item) {
$this->delete($item, Persistence\ObjectDao::NO_FLUSH);
}
Expand Down

0 comments on commit b62876b

Please sign in to comment.