@param string      $propertyName
@param string|null $dbFieldName

@return $this
19884
public function addStringField(string $propertyName, string $dbFieldName = null)
    {
        return $this->addField(new StringField($propertyName, $dbFieldName));
    }
536304
public function anyMatch($propertyName, $propertyValues) {
		if ($propertyValues === null || empty($propertyValues) || $propertyValues[0] === null) {
			return $this;
		}

		$queryString = null;
		$lastElemtentKey = count($propertyValues) - 1;
		foreach($propertyValues as $key => $propertyValue) {
			$parameterName = ':' . md5($propertyName . '#' . count($this->where) . $key);
			$this->parameterMap[$parameterName] = $propertyValue;

			if ($key === 0) {
				$queryString .= '(';
			}
			if ($key !== $lastElemtentKey) {
				$queryString .= sprintf("(`%s`) = %s OR ", $propertyName, $parameterName);
			} else {
				$queryString .= sprintf("(`%s`) = %s )", $propertyName, $parameterName);
			}
		}

		$this->where[] = $queryString;

		return $this;
	}
185555
public function setDbCollection(string $dbName, string $collectionName): \MongoCollection
    {
        return $this->mongoClient->selectDB($dbName)->selectCollection($collectionName);
    }
409160
public function setRestrictions($dataContainerName = null, $propertyName = null)
    {
        parent::setRestrictions($dataContainerName);
        $this->propertyName = $propertyName;
    }
245420
public static function collect(string $className, $objectAnnotation = null, string $propertyName = '', string $methodName = '', $propertyValue = null)
    {
        if ($objectAnnotation instanceof Connection) {
            $type   = $objectAnnotation->getType();
            $driver = $objectAnnotation->getDriver();
            self::$connects[$driver][$type] = $className;
        }
    }
818279
public function setDbName($dbName = null)
    {
        $this->dbName = ($dbName === null ? Propel::getDefaultDB() : $dbName);
    }
1211389
function field($fieldName) {
        if ($fieldName) {
            if ($this->fields && $this->fields != '*') {
                if ($fieldName == 'SQL_CALC_FOUND_ROWS *') {
                    $this->fields = 'SQL_CALC_FOUND_ROWS' . " $this->fields";
                }
                else if ($fieldName != '*') {
                    $this->fields = $fieldName . ",$this->fields";
                }
                //else {
                //    $this->fields .= ',' . $fieldName;
                //}
            }
            else {
                $this->fields = $fieldName;
            }
        }
        return $this;
    }
157595
public function addFloatField(string $propertyName, string $dbFieldName = null)
    {
        return $this->addField(new FloatField($propertyName, $dbFieldName));
    }
105009
public function addHashField(
        FieldMetadataInterface $itemMetadata,
        string $propertyName,
        string $dbFieldName = null
    ) {
        return $this->addField(new HashField($itemMetadata, $propertyName, $dbFieldName));
    }
749088
public function setProperty($propertyName, $value)
    {
        if ($value !== $this->getProperty($propertyName)) {
            $this->setMeta(static::IS_CHANGED, true);
            $this->setPropertyRaw($propertyName, $value);
        }
    }
309111
public function getProperty($propertyName)
    {
        if ($this->getPropertyMap()->hasKey($propertyName)) {
            return $this->getPropertyMap()->get($propertyName);
        }

        return $this->attachProperty(new Property($this, $propertyName));
    }
8475
public function setDatabase(string $dbName): bool
    {
        $this->db->exec('USE ' . $this->quoter->quoteName($dbName) . ';');

        return true;
    }
1365631
public function fromProperty(string $propertyName)
    {
        $classType = $this->classType;
        /** @var FinalizedClassDefinition $definition */
        $definition = $classType::definition();
        if (!$definition->hasProperty($propertyName)) {
            throw InvalidArgumentException::format(
                    'Invalid call to %s: property %s::$%s does not exist',
                    __METHOD__, $this->classType, $propertyName
            );
        }

        $this->fromCallback(function (ITypedObject $object) use ($propertyName) {
            return $object->toArray()[$propertyName];
        });
    }
244607
public function getRecord($tableName, $field, $value, $fields = array())
    {
        try {
            return $this->db->getRecord($tableName, $field, $value, $fields);
        } catch (\Exception $e) {
            throw new DbException($e->getMessage());
        }
    }
812859
public function allowProperties(string ...$propertyNames)
    {
        foreach ($propertyNames as $propertyName) {
            $this->propertiesToBeMapped[$propertyName] = $propertyName;
        }
        return $this;
    }
383328
public function setFromName($fieldName)
    {
        if (empty($this->name)) {
            $this->name = $fieldName;
        }
        $this->attrName = $this->getAttrName();
        $this->concrete = false === empty($this->getColumnName());

        if (empty($this->verboseName)) {
            $this->verboseName = ucwords(
                str_replace(
                    '_',
                    ' ',
                    $this->name
                )
            );
        }
    }
777453
public function entityTo(string $propertyName)
    {
        $idString = implode(':', [$this->definition->getClassName(), __CLASS__, $this->relationCount++]);
        $this->readDefinition->relation($propertyName)
            ->asCustom(new EmbeddedObjectRelation($idString, new EmbeddedMapperProxy($this->mapper)));
    }