public function __construct()
{
if (!$this->attributes) {
$this->attributes = $this->arr();
}
if (!$this->attributeBuilder) {
$this->attributeBuilder = new EntityAttributeBuilder($this, $this->attributes);
}
/**
* Add ID to the list of attributes
*/
$this->attr('id')->char();
}
function __construct() { parent::__construct(); $this->attr('ip')->char(); $this->attr('timestamp')->integer()->setDefaultValue(0); $this->attr('username')->char(); }