LazyRecord\Schema\SchemaInterface::getTable PHP Method

getTable() public method

Returns table name.
public getTable ( )
    public function getTable();

Usage Example

Example #1
0
 public function buildIndex(SchemaInterface $schema)
 {
     // Single column index
     $sqls = array();
     foreach ($schema->columns as $name => $column) {
         if ($column->index) {
             $indexName = is_string($column->index) ? $column->index : "idx_" . $schema->getTable() . "_" . $name;
             $query = new CreateIndexQuery($indexName);
             $query->on($schema->getTable(), (array) $name);
             $sqls[] = $query->toSql($this->driver, new ArgumentArray());
         }
     }
     return $sqls;
 }
All Usage Examples Of LazyRecord\Schema\SchemaInterface::getTable