CrudKit\Data\SQLDataProvider::oneToMany PHP Method

oneToMany() public method

public oneToMany ( $id, $dataProvider, $externalKey, $localKey, $name )
    public function oneToMany($id, $dataProvider, $externalKey, $localKey, $name)
    {
        // Make sure data provider gets inited properly
        $this->initQueue[] = $dataProvider;
        $this->internalAddColumn(SQLColumn::CATEGORY_FOREIGN, $id, array('fk_type' => 'oneToMany', 'fk_provider' => $dataProvider, 'fk_extKey' => $externalKey, 'fk_localKey' => $localKey, 'label' => $name));
    }