public function setModelName($modelName)
    {
        if (0 === strpos($modelName, '\\')) {
            $this->modelName = substr($modelName, 1);
        } else {
            $this->modelName = $modelName;
        }
        if ($this->modelName && !$this->modelTableMapName) {
            $this->modelTableMapName = constant($this->modelName . '::TABLE_MAP');
        }
        if (!$this->tableMap && $this->modelName) {
            $this->tableMap = Propel::getServiceContainer()->getDatabaseMap($this->getDbName())->getTableByPhpName($this->modelName);
        }

        return $this;
    }
public function setModelName($modelName)
    {
        if (0 === strpos($modelName, '\\')) {
            $this->modelName = substr($modelName, 1);
        } else {
            $this->modelName = $modelName;
        }
        if ($this->modelName && !$this->modelTableMapName) {
            $this->modelTableMapName = constant($this->modelName . '::TABLE_MAP');
        }
        if (!$this->tableMap && $this->modelName) {
            $this->tableMap = Propel::getServiceContainer()->getDatabaseMap($this->getDbName())->getTableByPhpName($this->modelName);
        }

        return $this;
    }
public function setModelName ( $ modelName ) { if ( 0 === strpos ( $ modelName , '\\' ) ) { $ this -> modelName = substr ( $ modelName , 1 ) ; } else { $ this -> modelName = $ modelName ; } if ( $ this -> modelName && ! $ this -> modelTableMapName ) { $ this -> modelTableMapName = constant ( $ this -> modelName . '::TABLE_MAP' ) ; } if ( ! $ this -> tableMap && $ this -> modelName ) { $ this -> tableMap = Propel :: getServiceContainer ( ) -> getDatabaseMap ( $ this -> getDbName ( ) ) -> getTableByPhpName ( $ this -> modelName ) ; } return $ this ; }
Sets the model name.
This also sets `this->modelTableMapName` and `this->tableMap`.

@param string $modelName

@return $this|ModelCriteria The current object, for fluid interface
Sets the model name . This also sets this - > modelTableMapName and this - > tableMap .