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;
    }
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;
    }
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 ; }
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.
Determines whether a model instance is managed in this ModelManager .