src/Zicht/Bundle/FrameworkExtraBundle/Twig/Extension.php
public function whereSplit($items, $keyValuePairs)
    {
        return array(
            $this->notWhere($items, $keyValuePairs),
            $this->where($items, $keyValuePairs)
        );
    }
public function whereSplit($items, $keyValuePairs)
    {
        return array(
            $this->notWhere($items, $keyValuePairs),
            $this->where($items, $keyValuePairs)
        );
    }
public function whereSplit ( $ items , $ keyValuePairs ) { return array ( $ this -> notWhere ( $ items , $ keyValuePairs ) , $ this -> where ( $ items , $ keyValuePairs ) ) ; }
Splits a list in two collections, one matching the criteria, and the rest

@param array|Collection $items
@param array $keyValuePairs
@return array
Splits a list in two collections one matching the criteria and the rest