/** * @return IOrmEntityAccessor */ function getDao() { if (!$this->dao) { $this->dao = new RdbmsDao(DBPool::getDefault(), $this); } return $this->dao; }
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; }
/** * @return IOrmEntityAccessor */ function getDao() { return new RdbmsDao(DBPool::getDefault(), $this); }