Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

DBRef database/collection method improvements #126

Merged
merged 4 commits into from
Aug 12, 2013
Merged

DBRef database/collection method improvements #126

merged 4 commits into from
Aug 12, 2013

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Aug 12, 2013

Summary of changes:

  • createDBRef() should not use array type hinting (arg can be a document or an ID)
  • createDBRef() should not dispatch events, nor should it be logged
  • Add event dispatching to Database::getDBRef() (Collection already had this)

This method is incredibly trivial, and there is little value in dispatching events or logging its calls.
This is being removed for the same reason as the Collection method (creating DBRefs is a very trivial operation).
Also create unit test for Database's event dispatching.
jmikola added a commit that referenced this pull request Aug 12, 2013
DBRef database/collection method improvements
@jmikola jmikola merged commit 028f058 into master Aug 12, 2013
@jmikola jmikola deleted the dbref branch November 26, 2013 20:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant