2725 search results for Doctrine

Hi there! Hmm, that's interesting - thanks for sharing it! Yes, your description of "it persists, but doesn't update" is very consistent with the situation where Doctrine thinks that your entity is unchanged (and so ...
weaverryan
weaverryan
Read Full Comment
... `AppBundle\Entity` In theory, I think Doctrine could probably throw an error, instead of silently not finding your class, but there may be some subtle reason why it's not able to do that. Update this namespace and you should be golden :). Cheers!
weaverryan
weaverryan
Read Full Comment
... fact, it fits the "smart reference" proxy pattern that Marco (core Doctrine contributor) talks about in his presentation here: http://ocramius.github.io/presentations/proxy-pattern-in-php/#/66 Cheers! ...
weaverryan
weaverryan
Read Full Comment
... and, if you have setup inverse side, i.e. OneToMany relationship for the Category - you can get all products of a category. See the https://knpuniversity.com/screencast/doctrine-relations/many-to-one-relation for the real example. Cheers!
When I configure autowire i get an error jwt_token_authenticator: class: AppBundle\Security\JwtTokenAuthenticator autowire: true Unable to autowire argument of type "Doctrine\ORM\EntityManager ...
Zuhayer Tahir
Zuhayer Tahir
Read Full Comment
Ah I see.. So this alias is arbitrary and it's set for the first time when you call "createQueryBuilder()" if you use Doctrine query builder, e.g. "$this->createQueryBuilder('cat')", where `cat` is the alias of table ...
in Symfony 2.8 I had to add @ORM\JoinColumn(onDelete="SET NULL") To the $owner variable. Before a SQL error appeared: [Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException] An exception ...
... [Doctrine\DBAL\Exception\InvalidFieldNameException] An exception occurred while executing 'INSERT INTO genus (name, species_count, fun_fact ...
Daan Hage
Daan Hage
Read Full Comment
Hi there, great tutorials really !! I was wondering how you would deal with entity inheritance. Let's say you have a User Entity and a Player Entity extending User (based on a doctrine class table inheritance). How ...
Ryan, it worked. You re Genus. lol. Thanks. However l have a new challenges. 1.how do i use exiting database in my projects instead of recreating using doctrine. 2. i have update my database with birthday. l get ...
Benson Twumasi
Benson Twumasi
Read Full Comment
Hi Ryan, why don't you use the lifecycle callbacks right on the entity? F.e.: namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * User ...
Dennis Biedermann
Dennis Biedermann
Read Full Comment
... ] private ?int $id = null; ``` Also, make sure you don't have an invalid Doctrine mapping by calling this command: ```terminal bin/console doctrine:schema:validate ``` Ad make sure both mapping and DB are OK. I hope this helps! Cheers!
... own identifier mapped by Doctrine.", "status": 500, "type": "/errors/500", I get this error, when I use ->actingAs($user) method , as I'm experimenting on new Symfony 7project, but seems working when using ->login() ...
... you can start that way, and then try to replace the local databases with Docker. I think it's a matter of setting up the env vars properly https://symfony.com/doc/current/doctrine/multiple_entity_managers.html Cheers!
MolloKhan
MolloKhan
Read Full Comment
... ORM 3.0, so you can just ignore it (though it may also require more dependencies to be upgraded as well like e.g. Doctrine bundle that may depend on ORM), so far no work on your side is needed :) Cheers!
Hey @Carlos-33! This smells like it's related to the new Doctrine ORM 3 and DBAL version 4. I believe API Platform 3.2.16 should now work... which was just released 2 days ago https://github.com/api-platform/core ...
weaverryan
weaverryan
Read Full Comment
Hey |mention:78932| That's a bit unexpected. I just installed a fresh copy of the project and, as lame as it may sound, it works on my computer. I believe you got a more recent version of Doctrine that dropped ...
MolloKhan
MolloKhan
Read Full Comment
... Hi, I'm facing the error: ``` Undefined constant Doctrine\DBAL\Types\Types::JSON_ARRAY ``` This error even raises when I don't make any described changes to the code. I just downloaded the code for this ...
schenck-de
schenck-de
Read Full Comment
Hey Peter, Yes we will cover WHERE IN() in this course, see: https://symfonycasts.com/screencast/doctrine-queries/where-in - that's a pretty simple thing, so it should not be a problem to understand that I think ...
How to make recursive function in symfony 3 with doctrine? I have script PHP native like below: mysql_connect("localhost","root","blablabla"); mysql_select_db("demo"); function html_menu(&$strmenu="", $parent=0 ...
Henri Tompodung
Henri Tompodung
Read Full Comment