I still use Codeigniter for the primary project i work on. I am starting to look at how i might rewrite that in Symfony. The problem is the 150 existing tables i have. it would take some time to re write them in Doctrine. ...
Hey Max,
We just want to make our URLs more readable, because IDs is something internal. Here's my expanded answer about it: https://knpuniversity.com/screencast/symfony-doctrine/show-404#comment-3109945782
If you will still have any questions - let me know!
Cheers! ...
Hey Richard ,
Good question! That's because you change implementation not Doctrine metadata ;) If you set properties with default values it affects only your classes, not database. If you want to change schema, do it in annotation:
```
@ORM\Column(... , options={"default" : 1})
```
Cheers! ...
Hi Ryan, i get an error when i want to install it..
[Doctrine\Common\Annotations\AnnotationException]
You have to enable opcache.load_comments=1 or zend_optimizerplus.load_comments=1 ...
I got this on composer install:
[Doctrine\Common\Annotations\AnnotationException]
You have to enable opcache.load_comments=1 or zend_optimizerplus.load_comments=1.
Script Sensio\Bundle\DistributionBundle\Composer ...
... (the current stable), we talk about it in our Symfony series: https://knpuniversity.com/screencast/symfony-doctrine/fixtures-alice
Cheers!
Hi Ryan
Yes I have this error when I run the doctrine command. I use MySQL and I change the relation in Genus and User by the OneToMany.
I do exactly the same as the tutorial but if I rename my old genus_scientist table the migration is ok.
I will check again this evening.
Thanks again for your really awesome works.
Cheers ...
Filters are grate! But I can't find any info about how to set one filter to one query many times with different parameters ((
Please help me if you can. Deadline is killing me ))
I made Q at Stackoverflow http://stackoverflow.com/questions/40034291/array-as-parameter-in-doctrine-sqlfilter ...
... for me -- all those is_publish = 1)
How does Doctrine know that we actually wanted to *group* them?
I mean, without "GROUP BY g.name" line? ...
... comment for some more details about that: https://knpuniversity.com/screencast/doctrine-relations/query-with-join#comment-2870919195
Cheers!
Hey Cameron,
That is a perfect catch, I personally didn't know about that feature because I never needed something like this. Thanks for sharing it with others, and here's a nice example of how to use it: https://symfony.com/doc/current/doctrine/resolve_target_entity.html
Cheers! ...
Hey Victor,
aaa I see thank you for explaining that. I dropped the table and I ran migration but now getting this error:
[Doctrine\DBAL\Exception\ConnectionException]
An ...
... /reference/attributes.html
And, for your purpose you may need the `MapEntity` attribute: https://symfony.com/doc/current/doctrine.html#doctrine-entity-value-resolver
Cheers!
Hey Francois,
Hm, if you already have some data in your DB and it does not work for you with simple Doctrine migration - you may want to create separate new tables for that and write a Symfony "migration" command and ...
Hey Tim,
Good catch! I'm glad you were able to find it yourself :)
Most problems with config are about the wrong indentation. You can always leverage `bin/console config:dump doctrine` command to double-check that every option is on the correct level.
Cheers! ...
Hey |mention:79070|
The Symfony ux-turbo package is missing a dependency. I'm not sure if that bug is already fixed, you can try upgrading it `composer up symfony/ux-turbo`, or you can install the missing dep manually `composer require doctrine/common` - or, if you're not using turbo you can remove it
Cheers! ...
Hey Tim,
You almost nailed it, but mess up your configuration slightly. Try this one:
```yaml
doctrine:
dbal:
default_connection: default
connections:
default ...
Hey |mention:30529|
If the `leftDay` field is not part of your entity data Doctrine will add it to the result along with the entity object. If you want both things in a single object you can create a DTO
Cheers! ...
Yo @jmwamser!
Hmm, I have no idea tbh. I've never used MSSQL, and I don't think the creator of Foundry has either, so it's quite possible that it's not coded correctly for that. You could try using https://github.com/dmaicher/doctrine-test-bundle instead to see if you have more luck.
Cheers! ...
Hey Alison,
I'm happy to hear you were able to fix this issue yourself! Yes, you need that PHP extension because we're using Doctrine in this project which stores data in the MySQL DB.
Btw, you only need to leave ...
2726
Doctrine
Filter Results