예제 #1
0
 protected function createEntityMeta($name, $label)
 {
     $classMetadata = $this->getModule('Doctrine')->getEntityManager('tests')->getClassMetadata('Psc\\Doctrine\\TestEntities\\' . $name);
     $entityMeta = new EntityMeta('Psc\\Doctrine\\TestEntities\\' . $name, $classMetadata, $label);
     $entityMeta->setLabel($label);
     return $entityMeta;
 }
예제 #2
0
 public function getEntityTableIndexList()
 {
     if ($this->tableIndexList === null) {
         $this->tableIndexList = array($this->baseTable => $this->getIdColumn());
     }
     return parent::getEntityTableIndexList();
 }
 function VtigerCRMActorMeta($tableName, $webserviceObject, $adb, $user)
 {
     parent::__construct($webserviceObject, $user);
     $this->baseTable = $tableName;
     $this->idColumn = null;
     $this->pearDB = $adb;
     $fieldList = $this->getTableFieldList($tableName);
     $this->moduleFields = array();
     foreach ($fieldList as $field) {
         $this->moduleFields[$field->getFieldName()] = $field;
     }
     $this->pearDB = $adb;
 }
 function getEmailFields()
 {
     if (!$this->meta) {
         $this->retrieveMeta();
     }
     return parent::getEmailFields();
 }
예제 #5
0
 public function __construct($userClass, $classMetadata = NULL)
 {
     parent::__construct($userClass ?: \Psc\PSC::getProject()->getUserClass(), $classMetadata ?: new \Doctrine\ORM\Mapping\ClassMetadata('Entities\\User'), array('default' => 'User'));
 }