Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix `Schema::cast()` using according to #567 #583

Merged
merged 1 commit into from

2 participants

@jails
Collaborator

No description provided.

@nateabele nateabele merged commit 4a3f480 into UnionOfRAD:data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 15, 2012
  1. @jails
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/cases/data/source/mongo_db/ExporterTest.php
View
2  tests/cases/data/source/mongo_db/ExporterTest.php
@@ -579,7 +579,7 @@ public function testNestedArrayMongoIdCasting() {
'similar_text.books' => array('type' => 'MongoId', 'array' => true),
'similar_text.magazines' => array('type' => 'MongoId', 'array' => true)
)));
- $result = $schema->cast(null, $data, $options);
+ $result = $schema->cast(null, null, $data, $options);
$this->assertTrue($result['similar_text']['articles'][0] instanceof MongoId);
$this->assertTrue($result['similar_text']['books'][0] instanceof MongoId);
$this->assertTrue($result['similar_text']['books'][1] instanceof MongoId);
Something went wrong with that request. Please try again.