/** * {@inheritDoc} */ public function switchValue($value) { $name = substr($value, 1); foreach ($this->fixtures as $fixtures) { if (isset($fixtures[$name])) { return filter_relationship($this->fixtures, $fixtures[$name]); } } return $value; }
/** * {@inheritDoc} */ public function switchValue($value) { $switchedValue = array(); foreach ($value as $subValue) { $name = substr($subValue, 1); foreach ($this->fixtures as $fixtures) { if (isset($fixtures[$name])) { $switchedValue[] = filter_relationship($this->fixtures, $fixtures[$name]); } } } return $switchedValue; }