/** * Determines if the node has next sibling * * @param PropelPDO $con Connection to use. * @return bool */ public function hasNextSibling(PropelPDO $con = null) { if (!EspecialidadPeer::isValid($this)) { return false; } return EspecialidadQuery::create()->filterByTreeLeft($this->getRightValue() + 1)->inTree($this->getScopeValue())->count($con) > 0; }