2709 search results for Doctrine

... \Annotation\ApiResource; use App\Repository\SubjectRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Serializer ...
Hazhir A.
Hazhir A.
Read Full Comment
Users: ` namespace App\Entity; use ApiPlatform\Core\Annotation\ApiFilter; use ApiPlatform\Core\Annotation\ApiResource; use ApiPlatform\Core\Serializer\Filter\PropertyFilter; use Doctrine\ORM\Mapping as ORM; use Symfony ...
I have Post model like this: ``` namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\Validator\Constraints as Assert; /** * Post ...
Diaconescu
Diaconescu
Read Full Comment
... code: https://github.com/api-platform/core/blob/d62e86e9cfa2a7a4eba3029053ff65f43a10e1ce/src/Bridge/Doctrine/Orm/ItemDataProvider.php#L75-L80 In most situations, where the `$id` you pass in is a string or int, the ...
weaverryan
weaverryan
Read Full Comment
... ), Doctrine has not queried for the Cart object *on that request*. Doctrine keeps track of all the objects it has saved or queried for during a request (so that if you query for the same object twice, it skips making a 2nd query ...
weaverryan
weaverryan
Read Full Comment
... ; use ApiPlatform\Core\Annotation\ApiResource; use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter; use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter ...
... = $container->get('doctrine')->getEntityManager()->getConnection(); $sql = 'SELECT * FROM yoda_event'; $stmt = $conn->prepare($sql); $stmt->execute(); var_dump($stmt->fetchAll());die; ===
Enkhbilguun E.
Enkhbilguun E.
Read Full Comment
... talking about secured end-to-end encryption with FOSMessageBundle, at least, out of the box. I suppose you know WhatsApp well, so here's a few features that FOSMessageBundle supports: - Support for both the Doctrine ORM and ...
... I create a query to capture the data and storage it by using Doctrine. What can you recommend me? I was looking also to use loggly or mix panel for this but I am not sure if they can track the user id. I hope you can give me some tip.
Just a brief note: Loading the fixtures tends to break when using a PostgreSQL database. As user is a reserved keyword in PostgreSQL and can only be used with double quotes in all sql queries. Doctrine unfortunately ...
Hi, I am struggling to create sub query using doctrine. My raw query works fine and return records. Raw SQL ` SELECT * FROM tag WHERE platform_id = 2 AND id NOT IN ( SELECT tag_id FROM certificate WHERE ...
... store your files inside "Resources/config/doctrine" (in your bundle) and Symfony will find them, but do not try to use more than one type of mapping, because Symfony reads only one type of mapping. You can get more ...
MolloKhan
MolloKhan
Read Full Comment
... doctrine/annotations ``` The tutorial ships with version 1.2.4, and this bug was fixed in 1.2.5. Sheesh, bad luck :). Let me know if that works! I'm going to update the code download now to use that new version. Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Nan, You probably means how to do it in Symfony Flex. Looks like this bundle somehow does not a Symfony recipe. I also wonder why, so I opened an issue: https://github.com/doctrine/DoctrineCacheBundle/issues/131 ...
Hey Robertino V.! Hmm, let's see if we can debug this nasty issue :). Ah, yep, I see it! It's really subtle! Notice that the error says that it could not load the type "Doctrine\DBAL\Types\DateType". The class you ...
weaverryan
weaverryan
Read Full Comment
... ', true) ->groupBy('genus.id') ->orderBy('max_created_at', 'DESC') ->getQuery() ->execute(); } The most important change was to make max_created_at to be HIDDEN. (Without HIDDEN doctrine didn't return array of objects, but array of arrays which contain max_created_at and a Genus object.) Best regards!
Damjan Ribovski
Damjan Ribovski
Read Full Comment
So that means that grouping is done on PHP side instead of MySQL side. For large "denormalized" data set that might be too inefficient. Is there a way to make Doctrine execute SQL similar to this one: SELECT g0_.id ...
Damjan Ribovski
Damjan Ribovski
Read Full Comment
... \GenusFormType::AppBundle\Form\{closure}() must be an instance of AppBundle\Repository\UserRepository, instance of Doctrine\ORM\EntityRepository given and it shows me: in src\AppBundle\Form\GenusFormType.php (line 57) ->add ...
Krzysztof
Krzysztof
Read Full Comment
... everything and return false if there was any constraint violation. And, about SQL injection, if you are using DQL (Doctrine Query Language) you have nothing to worry about 2) Well, for that case (that I don't recommend ...
MolloKhan
MolloKhan
Read Full Comment
Hey Mohammad Althayabeh! Ah, ok! I see it! Removing the `@ORM\Column`. That is confusing Doctrine: it's mapping it both as a normal column... and a relationship. You'll also need to reset your database after doing this ...
weaverryan
weaverryan
Read Full Comment