<?php

$def = new ezcPersistentObjectDefinition();
$def->table = "lh_group";
$def->class = "erLhcoreClassModelGroup";

$def->idProperty = new ezcPersistentObjectIdProperty();
$def->idProperty->columnName = 'id';
$def->idProperty->propertyName = 'id';
$def->idProperty->generator = new ezcPersistentGeneratorDefinition(  'ezcPersistentNativeGenerator' );

$def->properties['name'] = new ezcPersistentObjectProperty();
$def->properties['name']->columnName   = 'name';
$def->properties['name']->propertyName = 'name';
$def->properties['name']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 

$def->properties['disabled'] = new ezcPersistentObjectProperty();
$def->properties['disabled']->columnName   = 'disabled';
$def->properties['disabled']->propertyName = 'disabled';
$def->properties['disabled']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT;

$def->properties['required'] = new ezcPersistentObjectProperty();
$def->properties['required']->columnName   = 'required';
$def->properties['required']->propertyName = 'required';
$def->properties['required']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT;

return $def; 

?>