src/CRUDlex/EntityDefinition.php
public function setField($name, $key, $value)
    {
        if (!array_key_exists($name, $this->fields)) {
            $this->fields[$name] = [];
        }
        $this->fields[$name][$key] = $value;
    }
public function setField($name, $key, $value)
    {
        if (!array_key_exists($name, $this->fields)) {
            $this->fields[$name] = [];
        }
        $this->fields[$name][$key] = $value;
    }
public function setField ( $ name , $ key , $ value ) { if ( ! array_key_exists ( $ name , $ this -> fields ) ) { $ this -> fields [ $ name ] = [ ] ; } $ this -> fields [ $ name ] [ $ key ] = $ value ; }
Sets the value of a field key. If the field or the key in the field
don't exist, they get created.

@param string $name
the name of the field
@param string $key
the value of the key
@param mixed $value
the new value
Sets the value of a field key . If the field or the key in the field don t exist they get created .