public function checkCreatable()
    {
        if (property_exists($this, 'id') && $this->id > 0) {
            throw new \Exception(get_class($this) . " has ID:" . $this->id() . " thus not creatable.");
        }

    }
public function checkCreatable()
    {
        if (property_exists($this, 'id') && $this->id > 0) {
            throw new \Exception(get_class($this) . " has ID:" . $this->id() . " thus not creatable.");
        }

    }
public function checkCreatable ( ) { if ( property_exists ( $ this , 'id' ) && $ this -> id > 0 ) { throw new \ Exception ( get_class ( $ this ) . " has ID:" . $ this -> id ( ) . " thus not creatable." ) ; } }
Checks if this entity is creatable
@throws \Exception
Checks if this entity is creatable