1. Go to this page and download the library: Download suvera/winter-doctrine library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
t
#[Autowired("admindb-doctrine-em")]
private EntityManager $adminEm;
#[Transactional(transactionManager: "admindb-doctrine-emtxn")]
public function executeInTransaction(): void {
// do something here
foreach ($objects as $obj) {
$this->adminEm->persist($obj);
}
// do more things here
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.