Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function getLoadValue()
 {
     $value = (array) parent::getLoadValue();
     // Sync the array keys as the ID to make the
     // table widget happy!
     foreach ($value as $key => $_value) {
         $value[$key] = ['id' => $key] + (array) $_value;
     }
     return $value;
 }
Esempio n. 2
0
 /**
  * {@inheritDoc}
  */
 public function getLoadValue()
 {
     $value = parent::getLoadValue();
     if ($this->mode === static::MODE_RELATION) {
         return $this->getRelationObject()->lists($this->nameFrom);
     }
     return $this->mode === static::MODE_STRING ? explode($this->getSeparatorCharacter(), $value) : $value;
 }