Alcaeus\MongoDbAdapter\Tests\Mongo\MongoDBRefTest::dataCreateThroughMongoDB PHP Method

dataCreateThroughMongoDB() public static method

public static dataCreateThroughMongoDB ( )
    public static function dataCreateThroughMongoDB()
    {
        $id = new \MongoId();
        $validRef = ['$ref' => 'test', '$id' => $id];
        $object = new \stdClass();
        $object->_id = $id;
        $objectWithoutId = new \stdClass();
        return ['simpleId' => [$validRef, $id], 'arrayWithIdProperty' => [$validRef, ['_id' => $id]], 'objectWithIdProperty' => [$validRef, $object], 'arrayWithoutId' => [null, []], 'objectWithoutId' => [['$ref' => 'test', '$id' => $objectWithoutId], $objectWithoutId]];
    }