Created
July 23, 2012 17:41
-
-
Save Alan01252/3164928 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function saveWithEmbededDocuments() { | |
$this->setContacts($this->makeCollection(self::$contactKeys, 'contacts', 'value')); | |
$this->setFinancials($this->makeCollection(self::$financialKeys, 'financials', 'floValue')); | |
if(!$this->save()) { | |
return false; | |
} | |
return true; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment