src/Database/ORM/Traits/Mapping.php
/**
	 * Writes the value of the specified field to the model's committed store. This is an internal method.
	 *
	 * @param string $fieldName
	 * @param string|int|double $value
	 * @return void
	 */
Writes the value of the specified field to the model's committed store. This is an internal method.
@param string $fieldName
@param string|int|double $value
@return void
Writes the value of the specified field to the model ' s committed store . This is an internal method . @param string $fieldName @param string|int|double $value @return void
private function writeCommittedField($fieldName, $value) {
		$localFormat = $this->getLocalFormat($fieldName, $value);
		$field = new ModelField(null, $localFormat, $value);
		$this->rowFieldsCommitted[$fieldName] = $field;
		if ($fieldName === $this->getPrimaryKey()) {
			DB::connection($this->getConnection())->getDatabase()->cache()->saveModelInstance($this);
		}
	}
private function writeCommittedField ( $ fieldName , $ value ) { $ localFormat = $ this -> getLocalFormat ( $ fieldName , $ value ) ; $ field = new ModelField ( null , $ localFormat , $ value ) ; $ this -> rowFieldsCommitted [ $ fieldName ] = $ field ; if ( $ fieldName === $ this -> getPrimaryKey ( ) ) { DB :: connection ( $ this -> getConnection ( ) ) -> getDatabase ( ) -> cache ( ) -> saveModelInstance ( $ this ) ; } }
Writes the value of the specified field to the model's committed store.
Writes the value of the specified field to the model ' s committed store .