Example #1
0
/**
 * @param array $fields
 *
 * @return array
 */
function filter_relationship(array $fixtures, array $fields)
{
    $filteredFields = array();
    foreach ($fields as $name => $value) {
        if (!is_to_one_relationship($value) && !is_to_many_relationship($value) && !isset($fixtures[$name])) {
            $filteredFields[$name] = $value;
        }
    }
    return $filteredFields;
}
 /**
  * {@inheritDoc}
  */
 public function supports($value)
 {
     return is_to_many_relationship($value);
 }