skip to Main Content

How to specify to Doctrine NOT to create an index – PHP

I have this simple entity for example: <?php namespace AppEntityCreator; use AppRepositoryCreatorActivityContactRepository; use DoctrineORMMapping as ORM; #[ORMEntity(repositoryClass: ActivityContactRepository::class)] #[ORMIndex(columns: ['contact_id'])] class ActivityContact { #[ORMId] #[ORMManyToOne(targetEntity: Activity::class, cascade: ['persist'])] private Activity $activity; #[ORMId] #[ORMColumn(name: 'contact_id', type: 'integer')] private int $contactId; public…

VIEW QUESTION

MariaDb docker container fails on run, why?

Docker logs: I use the powershell script to run the container: docker rm ctnr-mariadb --force docker pull mariadb:latest docker run --name ctnr-mariadb -e MYSQL_ROOT_PASSWORD=example -e MARIADB_USER=user -e MARIADB_PASSWORD=password -e MARIADB_DATABASE=repo -p 1234:3306 -detach mariadb -v sql/init.sql:/docker-entrypoint-initdb.d/init.sql inside init.sql there is…

VIEW QUESTION

mariadb won't start suddenly – Debian

I have some trouble with my MariaDB Server, it was working ok but it won't start anymore. When I try to start the server it failed: root@vps45223599:/var/log# /etc/init.d/mysql start [....] Starting mysql (via systemctl): mysql.serviceJob for mariadb.service failed because the…

VIEW QUESTION
Back To Top
Search