public function generateLabel() { $tids = $this->getInboundOrder()->getTravelerIds(); if (is_a($tids, 'Doctrine\\ORM\\PersistentCollection')) { $tids->initialize(); } $this->getInboundOrder()->addTravelerId($this); $label = $this->getInboundOrder()->getLabel() . '-' . Utilities::baseEncode($tids->indexOf($this) + 1); $this->setLabel($label); return $label; }
public function generateLabel() { $label = Utilities::baseEncode($this->getId()); $this->setLabel($label); return $label; }