Add documentation on defining dynamic relationships