Closed paulchubatyy closed 13 years ago
Added the foreign_field key to references. If it is set we assume we need to get the referencing documents from another collection that have that field equal to id of the object.
Please add documentation for this new feature if you don't mind. Thanks!
Sure I will, just got my laptop dead, asap I get the new one I will provide the docs.
I've added the example to the Wiki.
If multiple is set to TRUE then we search in remote model by the field provided. If multiple is set to FALSE then we search in remote model by id field with the values from the local field. If multiple is not set then we just get the remote model by id stored in local field.
Similar to one>many sql relation