/** * @param array $arrIds * @param bool $keepMatches * @return SFM_List */ public function filterById(array $arrIds, $keepMatches = true) { $arrIds = (array) $arrIds; $list = $this->mapper->createList(); foreach ($this->arrEntities as $eTestEntity) { if ($keepMatches xor !in_array($eTestEntity->getId(), $arrIds)) { $list->append($eTestEntity); } } return $list; }