CrudKit\Data\SQLDataProvider::hasMany PHP Method

hasMany() public method

public hasMany ( $id, $label, $page, $options )
    public function hasMany($id, $label, $page, $options)
    {
        $this->internalAddColumn(SQLColumn::CATEGORY_EXTERNAL, $id, array('page_id' => $page->getId(), 'label' => $label, 'type' => ExternalColumn::HAS_MANY, 'foreign_key' => $options['foreign_key'], 'local_key' => $options['local_key']));
    }

Usage Example

Beispiel #1
0
 public function hasMany($id, $name, $columns)
 {
     $this->sqlProvider->hasMany($id, $name, $columns, []);
     return $this;
 }