Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add useDefaultIdType and generated to property properties #918

Merged
merged 1 commit into from
Feb 5, 2020

Conversation

agnes512
Copy link
Contributor

Add docs for property's property useDefaultIdType added in PR.
Also add explanation for generated to help explain useDefaultIdType.

@dhmlau
Copy link
Member

dhmlau commented Jan 8, 2020

@agnes512, i think your commit message is too long (max 50 characters for the first line). Could you please fix it? Thanks.

<td>No</td>
<td>Boolean</td>
<td>
<strong>For auto-migrate usage and the memory connector(id property only)</strong>. When it sets to <code>true</code>, the value of the property will be generated automatically with the default property type of the database. (e.g integer for MySQL and string for MongoDB)
Copy link
Member

Choose a reason for hiding this comment

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

Not knowing the actual behavior, I'm a bit confused on this line:
For auto-migrate usage and the memory connector(id property only)

Does it mean it only works for:

  • auto-migrate
  • for memory connector, it only works for id property. For other connectors, there's no such restriction?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reworded and removed memory-connector part.

pages/en/lb3/Model-definition-JSON-file.md Outdated Show resolved Hide resolved
Copy link
Contributor

@nabdelgadir nabdelgadir left a comment

Choose a reason for hiding this comment

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

👍

@agnes512 agnes512 merged commit bf25b71 into gh-pages Feb 5, 2020
@delete-merged-branch delete-merged-branch bot deleted the add-properties branch February 5, 2020 13:15
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.

3 participants