<?php
 namespace App\EntityList; class DocumentSeries extends \App\EntityList\GeneralAbstract { protected function loadDbTablesCfgs(): void { global $DBTDocumentsNumbers, $DBTDocumentsNumbersDocumentTypes, $DBTDocumentsNumbersUsers, $DBTDocumentsNumbersCurrencies, $DBTDocumentsNumbersTemplates; $this->setMainTable($DBTDocumentsNumbers, 'series'); $this->addAllowedTable($DBTDocumentsNumbersDocumentTypes, 'seriesDocType', 'series.id=seriesDocType.idDocumentSeries', 'LEFT'); $this->addAllowedTable($DBTDocumentsNumbersUsers, 'seriesUsers', 'series.id=seriesUsers.idDocumentSeries', 'LEFT'); $this->addAllowedTable($DBTDocumentsNumbersCurrencies, 'seriesCurrencies', 'series.id=seriesCurrencies.idDocumentSeries', 'LEFT'); $this->addAllowedTable($DBTDocumentsNumbersTemplates, 'seriesTemplates', 'series.id=seriesTemplates.idDocumentSeries', 'LEFT'); } } 