public function serialize($value) { $lookup = $this->getValueLookup(); return isset($lookup[$value]) ? $lookup[$value]->name : null; }