/**
  * Поиск шагов в истории
  *
  * @param EntryInterface $entry
  *
  * @return array
  */
 public function findHistorySteps(EntryInterface $entry)
 {
     $dql = "\n          SELECT\n            step\n          FROM {$this->_entityName} step\n          JOIN step.entry entry\n          WHERE\n              entry.id = :entryId\n                AND\n              step.type = :stepType\n          ORDER BY step.finishDate ASC\n          ";
     $query = $this->_em->createQuery($dql);
     $query->setParameter('entryId', $entry->getId());
     $query->setParameter('stepType', StepInterface::HISTORY_STEP);
     /** @var StepInterface[] $steps */
     return $query->getResult();
 }
 /**
  * Проверка установки/получения id
  */
 public function testSetterGetterId()
 {
     static::assertEquals($this->entry, $this->entry->setId('3'));
     static::assertEquals(3, $this->entry->getId());
 }