* @copyright 2019 * @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 * @category Stud.IP * @package resources * @since TODO * * @property int $id database column * @property string $name database column * @property int $position database column * @property int $mkdate database column * @property int $chdate database column * @property SimpleORMapCollection|ResourcePropertyDefinition[] $properties has_many ResourcePropertyDefinition */ class ResourcePropertyGroup extends SimpleORMap { protected static function configure($config = []) { $config['db_table'] = 'resource_property_groups'; $config['has_many']['properties'] = [ 'class_name' => ResourcePropertyDefinition::class, 'assoc_foreign_key' => 'property_group_id', 'assoc_func' => 'findByPropertyGroup' ]; parent::configure($config); } }