Category : doctrine

I have an error while i try to post or put a Race, here are my classes an the header send to api platform, tell me if you need anything else I’m lost, please help :'( Race <?php namespace AppEntity; use ApiPlatformCoreAnnotationApiFilter; use ApiPlatformCoreBridgeDoctrineOrmFilterDateFilter; use ApiPlatformCoreApiFilterInterface; use ApiPlatformCoreAnnotationApiResource; use AppRepositoryRaceRepository; use DateTimeInterface; use DoctrineCommonCollectionsArrayCollection; use ..

Read more

How can I define a Doctrine property in a parent class and override the association in a class which extends the parent class? When using annotation, this was implemented by using AssociationOverride, however, I don’t think they are available when using PHP 8 attributes Why I want to: I have a class AbstractTenantEntity whose purpose ..

Read more

I need a space in table name. I’ve found that the following works (note the spacing): use DoctrineORMMapping as ORM; /** * @ORMEntity() * @ORMTable(" `dettagli cantieri2` ") */ class CommissionLine { } However after updating the schema, difference are not detected. That means that after running doctrine:schema:update –dump-sql the same table would be re-created, ..

Read more

I’m trying to create my database with Doctrine from my PHP entity. I got this error when i type make:migration :=> An index with name ‘uniq_1d1c63b386cc499d’ was already defined on table ‘utilisateur’. I have make an inheritance mapping . class utilisateur is the super class . Administrateurs, Assistants, Medecins extends the class utilisateur.. Here is ..

Read more

File: /appfolder/apps/appname/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:65 Message: An exception occurred in driver: ORA-01017: invalid username/password; logon denied ADDITIONAL INFORMATION: DoctrineDBALExceptionConnectionException Stack trace: #0 /appfolder/apps/appname/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(176): DoctrineDBALDriverAbstractOracleDriver->convertException(‘An exception oc…’, Object(DoctrineDBALDriverOCI8OCI8Exception)) #1 /appfolder/apps/appname/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(161): DoctrineDBALDBALException::wrapException(Object(DoctrineDBALDriverOCI8Driver), Object(DoctrineDBALDriverOCI8OCI8Exception), ‘An exception oc…’) #2 /appfolder/apps/appname/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/Driver.php(48): DoctrineDBALDBALException::driverException(Object(DoctrineDBALDriverOCI8Driver), Object(DoctrineDBALDriverOCI8OCI8Exception)) #3 /uc01/apps/parking_portal/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(372): DoctrineDBALDriverOCI8Driver->connect(Array, ‘dbusername’, ‘oldpassword’, Array)…… I’m getting the above error in my PHP 7.3 application(Linux server apache) in the ..

Read more