title: append a related Model in Phalcon
body: <p>I wrote a vcard class with Phalcon in PHP. The vCard Model is initialized like this.</p>
  
  <pre><code>// Inside the BS_VCard class
  public function initialize(){
      $this-&gt;hasMany("id","BS_VCardElement","vCardId",array(
          "alias" =&gt; "elements",
          'foreignKey' =&gt; array(
              'action' =&gt; Phalcon\Mvc\Model\Relation::ACTION_CASCADE
          )
      ));
  }
  </code></pre>
  
  <p>Its elements are initialized like this</p>
  
  <pre><code>// Inside the BS_VCardElement class
  public function initialize(){
      $this-&gt;belongsTo("vCardId","BS_VCard","id",array("alias" =&gt; "vCard"));
      ...
  }
  </code></pre>
  
  <p>If a user reads a vCard and adds another element, it doesn't work as expected. To simplify the use I added some fascade methods like this</p>
  
  <pre><code>public function addDateOfBirth($date){
      $element = new BS_VCardElement();
      $element-&gt;setName("BDAY");
      $element-&gt;addValue($date);
      // This doesn't work
      $this-&gt;elements[] = $element;
  }
  </code></pre>
  
  <p>The <a href="http://docs.phalconphp.com/en/latest/reference/models.html#storing-related-records" rel="nofollow">Docs/Storing related records</a> do not explain how to append fresh data like this to the related table.</p>
  
  <p>I also tried this</p>
  
  <pre><code>$this-&gt;elements[] = array_merge($this-&gt;elements,array($element));
  </code></pre>
  
  <p>But the save method seems to ignore the added element. Save() returns true.</p>