/** * Object initialization * * @param UserIssue\Collection $collection Collection */ public function __construct(UserIssue\Collection $collection) { parent::__construct($collection); }
/** * Get first row * * @param Entity $entity Entity * * @return $this */ public function loadFirstRow(Entity $entity) { $this->_sqlObject = $this->_sql->select($entity->getTableName()); $this->_sqlObject->limit(1); return $this; }