I wrote a vcard class with Phalcon in PHP. The vCard Model is initialized like this.

```
// Inside the BS_VCard class
public function initialize(){
    $this->hasMany("id","BS_VCardElement","vCardId",array(
        "alias" => "elements",
        'foreignKey' => array(
            'action' => Phalcon\Mvc\Model\Relation::ACTION_CASCADE
        )
    ));
}

```

Its elements are initialized like this

```
// Inside the BS_VCardElement class
public function initialize(){
    $this->belongsTo("vCardId","BS_VCard","id",array("alias" => "vCard"));
    ...
}

```

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

```
public function addDateOfBirth($date){
    $element = new BS_VCardElement();
    $element->setName("BDAY");
    $element->addValue($date);
    // This doesn't work
    $this->elements[] = $element;
}

```

The [Docs/Storing related records](http://docs.phalconphp.com/en/latest/reference/models.html#storing-related-records) do not explain how to append fresh data like this to the related table.

I also tried this

```
$this->elements[] = array_merge($this->elements,array($element));

```

But the save method seems to ignore the added element. Save() returns true.