configurePrimary(), (new \Bitrix\Main\Entity\StringField('RULE_IP')) ->configurePrimary() ->configureSize(50), (new \Bitrix\Main\Entity\IntegerField('SORT')) ->configureDefaultValue(500), (new \Bitrix\Main\Entity\IntegerField('IP_START')) ->configureSize(18) ->configureNullable(), (new \Bitrix\Main\Entity\IntegerField('IP_END')) ->configureSize(18) ->configureNullable() ]; } public static function getCollectionClass() { return IPRuleInclIPs::class; } public static function getObjectClass() { return IPRuleInclIP::class; } public static function deleteList(array $filter) { $entity = static::getEntity(); $connection = $entity->getConnection(); $where = Query::buildFilterSql($entity, $filter); $where = $where ? 'WHERE ' . $where : ''; $sql = sprintf( 'DELETE FROM %s %s', $connection->getSqlHelper()->quote($entity->getDbTableName()), $where ); $res = $connection->query($sql); return $res; } } class IPRuleInclIPs extends EO_IPRuleInclIP_Collection { } class IPRuleInclIP extends EO_IPRuleInclIP { }