public function contains(GeneratedValue $element) { return in_array($element->unbox(), $this->domain); }