Skip to content

Conversation

@GromNaN
Copy link
Member

@GromNaN GromNaN commented Jan 14, 2026

$runner->runMaker([
// document class name
'User',
// add not additional fields

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add no additional fields I'm guessing?

);

if ($withDatabase) {
$runner->updateSchema();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does updateSchema actually do in a MongoDB context?

return in_array(lcfirst($name), self::MONGODB_KEYWORDS, true);
}

public function getDocumentNamespace(): string

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be nice to unit test this helper separately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants