예제 #1
0
 /**
  * Return reference of account by $cmlAccount object.
  * @param CmlAccount $cmlAccount
  */
 private function getReference($cmlAccount)
 {
     $name = $cmlAccount->getName();
     $result = $this->query("select id from Accounts where accountname='{$name}';");
     return $this->getFirstReference($result);
 }