Project

General

Profile

Bug #80781

Updated by Martin Born over 7 years ago

The code below leads to an exception in \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend in line 380: 

 <pre> 
 $connection = $this->objectManager->get(ConnectionPool::class)->getConnectionForTable('tx_myext_domain_model_record'); $this->objectManager->get(ConnectionPool::class)->getConnectionForTable('tx_udgexperts_domain_model_expert'); 
 $statement = $this->objectManager->get( 
     \Doctrine\DBAL\Statement::class, 
     'select * from tx_myext_domain_model_record', 
     $connection 
 ); 

 $query = $this->createQuery(); 
 $query->statement($statement); 

 $query->execute(true); 
 </pre> 

 or  

 <pre> 
 $result = $query->execute(); 
 $result->toArray(); 
 </pre>

Back