title: Changing number of owners in realmexamples
body: <p>I've downloaded Realm and opened the RealmExamples app.</p>
  
  <p>The RealmExamples app is included in the down load from
  <a href="http://realm.io/docs/cocoa/0.90.4/" rel="nofollow">http://realm.io/docs/cocoa/0.90.4/</a></p>
  
  <p>Trying to add an owner to get the print out to give more than 1. Also added age to print out</p>
  
  <pre><code> println("\(dog.name) has \(ownerNames.count) owners (\(ownerNames)) is \(dog.age) years old")
  </code></pre>
  
  <p>I added a dog and owner and gave one dog two owners but the print gives just 1 owner twice.</p>
  
  <pre><code>  import UIKit
  import Realm
  
  class Dog: RLMObject {
      dynamic var name = ""
      dynamic var age = 0
      var owners: [Person] {
          // Realm doesn't persist this property because it only has a getter defined
          // Define "owners" as the inverse relationship to Person.dogs
          return linkingObjectsOfClass("Person", forProperty: "dogs") as [Person]
      }
  }
  
  class Person: RLMObject {
      dynamic var name = ""
      dynamic var dogs = RLMArray(objectClassName: Dog.className())
  }
  
  @UIApplicationMain
  class AppDelegate: UIResponder, UIApplicationDelegate {
  
  var window: UIWindow?
  
  func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -&gt; Bool {
  
      self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
      self.window!.rootViewController = UIViewController()
      self.window!.makeKeyAndVisible()
  
      NSFileManager.defaultManager().removeItemAtPath(RLMRealm.defaultRealmPath(), error: nil)
  
      let realm = RLMRealm.defaultRealm()
      realm.transactionWithBlock {
          Person.createInRealm(realm, withObject: ["John", [["Fido", 1]]])
          Person.createInRealm(realm, withObject: ["colin", [["Fido", 1]]])
        Person.createInRealm(realm, withObject: ["colin", [["simba", 3]]])
      }
  
      // Log all dogs and their owners using the "owners" inverse relationship
      let allDogs = Dog.allObjects()
      for dog in allDogs {
          let dog = dog as Dog
          let ownerNames = dog.owners.map { $0.name }
          println("\(dog.name) has \(ownerNames.count) owners \(ownerNames) is \(dog.age) years old")
      }
      return true
  }
  </code></pre>
  
  <p>}</p>
  
  <p>the println gives</p>
  
  <pre><code>Fido has 1 owners ([John]) is 1 years old
  Fido has 1 owners ([colin]) is 1 years old
  simba has 1 owners ([colin]) is 3 years old
  </code></pre>
  
  <p>what should I do to get Fido has 2 owners.</p>