public function __construct($tableName, Context $context) { $this->tableName = $tableName; $this->driver = $context->getConnection()->getSupplementalDriver(); $this->conventions = $context->getConventions(); $this->structure = $context->getStructure(); $this->delimitedTable = implode('.', array_map([$this->driver, 'delimite'], explode('.', $tableName))); }
public function __construct(Context $databaseContext) { $this->databaseContext = $databaseContext; $this->databaseStructure = $databaseContext->getStructure(); $this->databaseConventions = $databaseContext->getConventions(); }