original_string: public function contains($model)
      {
          $class = $this->getClassMetadata(get_class($model));
  
          foreach ($class->getFieldManagerNames() as $manager) {
              if (!$this->pool->getManager($manager)->contains($model->{'get' . ucfirst($manager)}())) {
                  return false;
              }
          }
  
          return true;
      }
code: public function contains($model)
      {
          $class = $this->getClassMetadata(get_class($model));
  
          foreach ($class->getFieldManagerNames() as $manager) {
              if (!$this->pool->getManager($manager)->contains($model->{'get' . ucfirst($manager)}())) {
                  return false;
              }
          }
  
          return true;
      }
code_tokens: public function contains ( $ model ) { $ class = $ this -> getClassMetadata ( get_class ( $ model ) ) ; foreach ( $ class -> getFieldManagerNames ( ) as $ manager ) { if ( ! $ this -> pool -> getManager ( $ manager ) -> contains ( $ model -> { 'get' . ucfirst ( $ manager ) } ( ) ) ) { return false ; } } return true ; }
docstring: Determines whether a model instance is managed in this ModelManager.
  
  @param mixed $model
  
  @return boolean TRUE if this ModelManager currently manages the given document, FALSE otherwise.
docstring_tokens: Determines whether a model instance is managed in this ModelManager .