2725 search results for Doctrine

... ApiPlatform\Core\DataPersister\ContextAwareDataPersisterInterface; use App\Entity\User; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; class ...
... " config. That's also on purpose - the bundle-config (like framework, or twig, or doctrine) is really meant to be used by *end-users* and not by applications. 2) So, most of the time, when you want to configure another ...
weaverryan
weaverryan
Read Full Comment
... things like Doctrine, Twig, etc are pre-installed) 2) Added your 2 entities exactly to my project 3) Removed a few extra properties - like "job" - to get things working 4) Then used the API Platform admin area to do exactly ...
weaverryan
weaverryan
Read Full Comment
... it would seem)! EDIT : Perfect man ! We are done ! Thanks ! So, the final output : https://zupimages.net/up/20/04/vqro.png There are some errors, but which do not seem to bother. One of which concerns Doctrine and the ...
... `self::$container->get('doctrine')->getManager()`) whenever you needed it. In some cases, after making a request with the Client, you'll need to ask for the entity manager again. Otherwise, you'll (kind of) still be using ...
weaverryan
weaverryan
Read Full Comment
... App\Entity\Social s LEFT JOIN App:UserSocial us ON s.id = us.social_id AND us.user_id = 1" but when I try ->getQuery()->getResult(), I get an error which doesn't make any sense: [Syntax Error] line 0, col 9: Error: Expected Doctrine\ORM\Query\Lexer::T_IDENTIFIER, got '*' Any Idea? ...
Alessandro-D
Alessandro-D
Read Full Comment
... //symfonycasts.com/screencast/doctrine-queries/raw-sql-queries - please, notice that we refer exact table and column names in MySQL DB, not class and property names. Otherwise, if you want to do this in a few queries instead ...
... /FormFactory.php#L78 I'll say 2 things about this: 1) The "guessers" themselves often *do* contain caching. For example, Doctrine metadata is cached - so checking whether or not a column is "nullable=false" is nearly ...
weaverryan
weaverryan
Read Full Comment
... :). In a more perfect world, the "stations" table would have a true relation to the "markets" table through a join table. That would then all be mapped correctly on Doctrine (as a ManyToMany relationship) and API Platform ...
weaverryan
weaverryan
Read Full Comment
... hinted to `Doctrine\Common\Persistence\ManagerRegistry`. Then it works ! Sorry if I wasted a bit of your time, maybe this will help other people encountering the same issue.
... ', 'DESC') ->setMaxResults(30) ->getQuery() ->execute();` 4) And I failed to write it using "Doctrine Query Language" as in https://symfony.com/doc/current/doctrine.html#querying-for ...
... like `$entityManager->clear()` in your app... or are you doing this work in a test? Or, `$entityManager->detach()`. Everything makes it *feel* like you queried for `CartProduct` object... but then Doctrine... sorta ...
weaverryan
weaverryan
Read Full Comment
... According to the error, it sort of seems like Doctrine thinks (for some reason) that this is a NEW Product it should insert. Based on what this, we can keep debugging :). Cheers!
weaverryan
weaverryan
Read Full Comment
... useful it is to people between the doctrine transport and Rabbit. But, this is obviously a vote from you for "yes, useful!". > it could include a workaround for the DelayStamp Yea, we still need this for Redis - this was a ...
weaverryan
weaverryan
Read Full Comment
... it to put the binary contents of the file itself onto the message class. However, I think you may run into problems if you do this with the Doctrine transport (which, out-of-the-box doesn't like binary content, though ...
weaverryan
weaverryan
Read Full Comment
... not sure what you other things you're processing in the doctrine event listener. Btw, adding an extra "setBusinessName()" method to your User entity so that you have a businessName field is not a bad solution. And you ...
weaverryan
weaverryan
Read Full Comment
... know the proper steps to handle this but as a work around I created some extra fields on User entity and created a doctrine event listener to do the rest of the things based on logged in user. I am pretty sure there maybe ...
... (name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id;` This is my doctrine.yaml `doctrine: dbal: default_connection: pms connections: portal ...
... InvoiceHeader: class: App\Entity\InvoiceHeader entity_manager: 'doctrine.orm.Main_entity_manager' ` my doctrine.yaml ` doctrine: dbal: default_connection: Main # configure these for ...
... than once. About migration, it can be doctrine migration bundle where you can create a migration, e.g. with "bin/console make:migration" command if you have MakerBundle installed. But in more complex examples, like in ...