src/ORM/FieldType/DBField.php
public function setName($name)
    {
        if ($this->name && $this->name !== $name) {
            user_error("DBField::setName() shouldn't be called once a DBField already has a name."
                . "It's partially immutable - it shouldn't be altered after it's given a value.", E_USER_WARNING);
        }

        $this->name = $name;

        return $this;
    }
public function setName($name)
    {
        if ($this->name && $this->name !== $name) {
            user_error("DBField::setName() shouldn't be called once a DBField already has a name."
                . "It's partially immutable - it shouldn't be altered after it's given a value.", E_USER_WARNING);
        }

        $this->name = $name;

        return $this;
    }
public function setName ( $ name ) { if ( $ this -> name && $ this -> name !== $ name ) { user_error ( "DBField::setName() shouldn't be called once a DBField already has a name." . "It's partially immutable - it shouldn't be altered after it's given a value." , E_USER_WARNING ) ; } $ this -> name = $ name ; return $ this ; }
Set the name of this field.

The name should never be altered, but it if was never given a name in
the first place you can set a name.

If you try an alter the name a warning will be thrown.

@param string $name

@return $this
Set the name of this field .