2725 search results for Doctrine

... "owning" side (a concept I talk about about here https://knpuniversity.com/screencast/symfony2-ep3/doctrine-inverse-relation#owning-versus-inverse-side - because it *is* tricky) if your relationship is never set, which ...
weaverryan
weaverryan
Read Full Comment
... those 2 entities, doctrine can't find the Account Entity and give this error : Entity of type 'VRZ\Bundle\AccountBundle\Entity\Account' for IDs id(48) was not found (Doctrine\ORM\EntityNotFoundException) This is the code ...
Julien Quintiao
Julien Quintiao
Read Full Comment
... this is a bad approach. Creating entity repository with many custom methods in some cases could be overhead. So in this cases criteria could help as well. Also I like to easily apply criteria to already fetched Doctrine ...
... Doctrine entity, Symfony tries to automatically query for the Article from the database, by using some information from the route. Usually, you have a route that looks like this: ``` /** * @Route("/article/{id ...
weaverryan
weaverryan
Read Full Comment
How to handle dynamic Subdomains in Symfony

... So far our application isn’t actually doing any logic with these subdomains, but we’ll get there! 2) Create the Site Entity¶ Next, let’s use Doctrine to generate a new Site entity, which will store all the information ...

11:43
``` namespace RevprodBundle\Entity; //use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="RevprodBundle\Repository\ProductRepository") * @ORM\Table ...
Vasiliy Repin
Vasiliy Repin
Read Full Comment
... (or the same would be true if we did count($event->getAttendees()) in PHP), Doctrine says "I don't know how many attendees there are, let me query for them). There are 2 ways to fix this: 1) Mark the "attendees ...
weaverryan
weaverryan
Read Full Comment
... /" }, "files" : [ "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php" ] }, "require" : { "php" : ">=5.5.9", "doctrine/doctrine ...
Jürgen Schatral
Jürgen Schatral
Read Full Comment
... isn't - somehow - some other database configuration somewhere else. Look in all of the files in app/config for a "doctrine" root key. In short: your configuration is not behaving as it should. And although you should not ...
weaverryan
weaverryan
Read Full Comment
... Platform simply calls `$product->getProductFiles()`, which uses 100% Doctrine logic. Then, for each related file, it does the same thing, calling `$productFile->getFile()`, once again using normal Doctrine logic and NOT the ...
weaverryan
weaverryan
Read Full Comment
... /distribution/) is not in sync with the application. For example the documentation declares all variables as "public" though Doctrine specifically mentions that variables should be "protected" or "private". Creating ...
sridharpandu
sridharpandu
Read Full Comment
... \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.