core/classes/DataModel.class.php
public final function setDefinition($key, $value){
        if(array_key_exists($key, $this->definition)){
            throw new \Disco\exceptions\Exception("Cannot override frozen data model definition `{$key}`");
        }//if
        $this->definition[$key] = $value;
    }
public final function setDefinition($key, $value){
        if(array_key_exists($key, $this->definition)){
            throw new \Disco\exceptions\Exception("Cannot override frozen data model definition `{$key}`");
        }//if
        $this->definition[$key] = $value;
    }
public final function setDefinition ( $ key , $ value ) { if ( array_key_exists ( $ key , $ this -> definition ) ) { throw new \ Disco \ exceptions \ Exception ( "Cannot override frozen data model definition `{$key}`" ) ; } //if $ this -> definition [ $ key ] = $ value ; }
Set a datums definition. Cannot overwrite previously defined definitions.

@param string $key The definition key.
@param array $value The definition.

@throws \Disco\exceptions\Exception When setting the definition would override a frozen data model definition.
Set a datums definition . Cannot overwrite previously defined definitions .