вот мой метод (слой sys (другого на этот метод нет))
PHP код:
public void renamePrimaryKey()
{
bomTable bomTable;
routeTable routeTable;
itemId oldItemId = this.orig().ItemId;
ttsbegin;
super();
if (! BOMVersion::dictConfigurationKey().enabled())
{
bomTable = bomTable::find(oldItemId);
if (bomTable)
{
bomTable.BOMId = this.ItemId;
bomTable.renamePrimaryKey();
}
}
if (! routeVersion::dictConfigurationKey().enabled())
{
routeTable = routeTable::find(oldItemId);
if (routeTable)
{
routeTable.RouteId = this.ItemId;
routeTable.renamePrimaryKey();
}
}
ttscommit;
}