<?php

namespace App\EntityList;

/**
 * The class can manage and export a list of supplier products from the database.
 * @author Gabriel
 */
class SupplierProducts extends \App\EntityList\GeneralAbstract
{

	/**
	 * (non-PHPdoc)
	 * @see \App\EntityList\GeneralAbstract::loadDbTablesCfgs()
	 */
	protected function loadDbTablesCfgs(): void
	{

		// store the table name
		global $DBTSuppliersProducts, $DBTSuppliersProductsAssoc;
		$this->setMainTable($DBTSuppliersProducts, 'suppPr');
		$this->addAllowedTable($DBTSuppliersProductsAssoc, 'assoc', 'suppPr.`id`=assoc.`idSupplierProduct`', 'LEFT');

	}


}

