2725 search results for Doctrine

... postpone to write *everything* in Symfony way, i.e. keep hardcoded HTML forms, do not use Doctrine ORM, keep plain queries with PDO, etc. When you finish migrating to Symfony, it would be easier to refactoring these ...
... ------------------------------------------------------------------------------------------ When I executed php bin/console h:d:f:l I've got the following error messages: [Doctrine\DBAL\Exception ...
Paolo Mazzanti
Paolo Mazzanti
Read Full Comment
... ) {... $solicitud->getIdDatofacturacion(); DatoFacturacion object(DatoFacturacion)#199 (10) {... $solicitud->getIdDireccion(); Direccion object(Direccion)#181 (9) {... $solicitud->getServicios(); object(Doctrine\Common ...
sebastian
sebastian
Read Full Comment
... ` (`id`)) [Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException] An ...
... ) In alterRoutes, instead of altering routes, we'll be adding new ones! How? Basically, you'll create a new instance of this class: https://github.com/doctrine/annotations/blob/master/lib/Doctrine/Common/Annotations ...
weaverryan
weaverryan
Read Full Comment
Hi Victor, I ran into a new issue. At my project I manually created a new entity to connect to my old_wtb. My doctrine.yaml is as following: ```yaml doctrine: dbal: default_connection: default ...
Hey @Huy! Hmm. I have a feeling this is being caused by Doctrine. So when deserialization happens, it uses Symfony's property-info component to get the "type" of a property - e.g. `coolFactor` in this case. To get ...
weaverryan
weaverryan
Read Full Comment
Hi! If this is still active, I have a question about setting up multiple connections in Doctrine. We have a system that we're trying to implement where we selectively use a read-only database. Currently, we have it ...
... contains an instance of class B on a property: it does not need to be (and shouldn't be) using a ManyToOne attribute from Doctrine. So, for example: ``` #[ApiResource] class A { public string $name ...
weaverryan
weaverryan
Read Full Comment
Hey Mattias, Hm, well, they are not that much different fairly speaking.. but yeah, it's better to separate them. The more specific version you specify there - less problems you will have, and queries that Doctrine ...
... function in MySQL - it will require you to deal with Doctrine anyway, and Doctrine requires it to be configured someway. Even if it worked - it would complicate things I think. I would recommend you to simply write a ...
... queries here: http://knpuniversity.com/screencast/doctrine-queries/joins Good lucks! This stuff is the hardest part of Doctrine in my opinion: trying to keep your head straight about all the different directions for each ...
weaverryan
weaverryan
Read Full Comment
... Hey Ryan! I'm back with another brain itcher that's been consuming most of my afternoon. I'm curios why doctrine truncates my select query when using multiple join selects with queryBuilder. My query is as follows ...
... trying to filter the *activity* results themselves... using the openingHours as information for that. If THAT is true, then what you want is a custom Doctrine filter. A doctrine filter is basically the combination of (A ...
weaverryan
weaverryan
Read Full Comment
... " DATABASE_URL="mysql://root:password@127.0.0.1:3306/main?serverVersion=5.7" #DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8" ###< doctrine/doctrine-bundle ### ``` #docker ...
... Doctrine is tracking a specific Tech and can't replace it with another one loaded by Ajax. Did anyone have already done such a thing? Is there a Doctrine ID for tracking (I saw #id while dumping data to compare) ? Or ...
... most part, functionality that you will need to build "by hand". But I have a few pieces of advice: A) Since creating a CRUD is a well-known thing to do with Doctrine, I would model my code off of a normal Doctrine CRUD ...
weaverryan
weaverryan
Read Full Comment
... running mysql migrations in PHP 8. It just fails with a message saying that "There is no active transaction". If you're using PHP 8 and MySQL, you get this. In that case, you need to `composer up doctrine/migrations` (it ...
weaverryan
weaverryan
Read Full Comment
... debug: '%kernel.debug%' strict_variables: '%kernel.debug%' # Doctrine Configuration doctrine: dbal: driver: pdo_mysql host: '%database_host%' port: '%database_port%' dbname ...
Angela F.
Angela F.
Read Full Comment
... "$registry" of method "__construct()" references interface "Symfony\Bridge\ !! Doctrine\RegistryInterface" but no such service exists. Try changing the type-hint to "Doctrine\Persistence\ManagerRegistry" instead. I ...