MongoDB support

Open
#142 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
mongodb, php
Domain
backend, database

Research direction

Start by tracing the existing record helpers and transaction handling that reference yii/db/Connection, including the connection watcher and transaction forcer. Compare those entry points with yii/mongodb/Connection and yii/mongodb/Transaction; done means MongoDB transactions and haveRecord-style helpers are supported without unresolved duplicated references.

Written by the indexing model from the issue text.

Description

Need support for

  • transactions
  • record helpers (haveRecord)

looks like we have to effectively copy paste the entire bunch of record helpers and swap the active record refence to mimic. and for transaction, both connection watcher and transaction forcer is hard refenced to yii/db/Connection, to have transaction support we have to clone them and swap references to yii/mongodb/Connection and yii/mongodb/Transaction.

@samdark - Ideally, can we have a common parent for both yii/db/Connection and yii/mongodb/Connection? something like yii/db/BaseConnection.

Thanks

Dominant language
PHP
Stars
19
Forks
43
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeception/module-yii2

All issues in Codeception/module-yii2

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.