getConventions() public method

public getConventions ( ) : Nette\Database\IConventions
return Nette\Database\IConventions
Example #1
0
 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)));
 }
Example #2
0
 public function __construct(Context $databaseContext)
 {
     $this->databaseContext = $databaseContext;
     $this->databaseStructure = $databaseContext->getStructure();
     $this->databaseConventions = $databaseContext->getConventions();
 }