Lazer\Classes\Core_Relation::insertRelationData PHP Method

insertRelationData() protected method

Inserts relation data to config file
protected insertRelationData ( string $from, string $to, string $type, array $keys )
$from string Local table
$to string Related table
$type string Relation type
$keys array Relationed keys
    protected function insertRelationData($from, $to, $type, array $keys)
    {
        $config = Config::table($from);
        $content = $config->get();
        $content->relations->{$to} = array('type' => $type, 'keys' => $keys);
        $config->put($content);
    }