public function testInsertOrgChannelField()
 {
     global $logger;
     $logger = new ShopbookLogger();
     $logger->enabled = true;
     $logger->debug("Setting up PHP Unit Testing ...");
     $orgDataField = new OrgDataField(4, 1, 2, "age", 4, 1, null, null, 2, $id = null);
     $arr = DAOFactory::getOrgDataFieldsDAO()->insertOrgChannelField($orgDataField);
     // Act
     //$b = $a->negate();
     // Assert
     //$this->assertEquals(-1, $b->getAmount());
 }
 public static function loadOrgDataFields($orgId, $channelId)
 {
     global $logger;
     self::$orgDataFieldDAO = DAOFactory::getOrgDataFieldsDAO();
     $logger->debug("CHECK - Fetch OrgDataField Details with org_id: {$orgId} and channel_id: {$channelId}");
     $orgDataFieldObjs = self::$orgDataFieldDAO->readAll($orgId, $channelId);
     if (empty($orgDataFieldObjs)) {
         $logger->debug('CHECK - Fetched OrgDataField: ' . $orgDataFieldObjs);
         throw new OrgDataFieldNotFoundException($orgId, $channelName);
     }
     $logger->debug('CHECK - Fetched OrgDataField: ' . json_encode($orgDataFieldObjs));
     return $orgDataFieldObjs;
 }