Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Documentation update

  • Loading branch information...
commit 09d43e0fac2a92ac1deeb6db96b08ee7b32c7473 1 parent c395074
@zefhemel zefhemel authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 README.md
View
9 README.md
@@ -215,13 +215,12 @@ Mix-ins
You can also define mix-ins and apply them to entities of the model.
-A mix-in definition is similar to an entity definition. Just pass an additional `true`
-argument to the `persistence.define` function, to indicate that you are defining
-a mix-in. For example:
+A mix-in definition is similar to an entity definition, except using
+`defineMixin` rather than just `define`. For example:
- var Annotatable = persistence.define('Annotatable', {
+ var Annotatable = persistence.defineMixin('Annotatable', {
lastAnnotated: "DATE"
- }, true);
+ });
You can define relationships between mix-in and entities. For example:
Please sign in to comment.
Something went wrong with that request. Please try again.