コード例 #1
0
 /**
  * @return IOrmEntityAccessor
  */
 function getDao()
 {
     if (!$this->dao) {
         $this->dao = new RdbmsDao(DBPool::getDefault(), $this);
     }
     return $this->dao;
 }
コード例 #2
0
 function getDao()
 {
     Assert::isTrue($this->hasDao, '%s is dao-less entity', $this->name);
     if (!$this->dao) {
         $this->dao = new RdbmsDao($this->dbSchema ? DBPool::get($this->dbSchema) : DBPool::getDefault(), $this);
     }
     return $this->dao;
 }
コード例 #3
0
 /**
  * @return IOrmEntityAccessor
  */
 function getDao()
 {
     return new RdbmsDao(DBPool::getDefault(), $this);
 }