Closed basantk closed 7 years ago
Inside your initialize method, set the name of the connection you want. Will be like this
public function initialize(array $config) {
$config['connection'] = "myconnection";
parent::initialize($config);
}
Thanks
how can i use aggregation in momgoDB like
This was not implemented yet.
i have two or more Datasources connection i wan a connection from default to other and test datasource for mongo only. so how can i do that. and i want to work with mysql and mongo db both.