2709 search results for Doctrine

Hey Greg! Ah, it does! Well, sort of :). I was thinking about the problem incorrectly, but your gist cleared it up. Basically, when Doctrine tries to calculate what is different in your `genus_scientist` table between ...
weaverryan
weaverryan
Read Full Comment
... AcmeBlogBundle:Post. The Entity shortcut name: EventBundle:Event [Doctrine\DBAL\Exception\DriverException ...
Pete Garvin
Pete Garvin
Read Full Comment
Hey Terry! There's not a good way that I know of to do this :/. Your method is probably about the right approach. Btw, it does touch on something cool about Doctrine: when you clone the Genus object, the new Genus ...
weaverryan
weaverryan
Read Full Comment
... (repositoryClass="AppBundle\Repository\GenusRepository") * ... */ class Genus ``` We add this right after creating the repository class (https://knpuniversity.com/screencast/symfony-doctrine/custom-queries#creating-your-own ...
weaverryan
weaverryan
Read Full Comment
... " to look at the regex and it matches "Doctrine\DBAL\Schema\SchemaConfig", but not "?Doctrine\DBAL\Schema\SchemaConfig". - Pete ...
Peter Stephens
Peter Stephens
Read Full Comment
Yo Mike! Hmm, are you sure about the deprecation? It actually makes sense - changes like this have been made in the past - but I don't see it marked as deprecated in the code yet: https://github.com/doctrine/doctrine2 ...
weaverryan
weaverryan
Read Full Comment
... Yep, that's odd - your annotation looks totally correct to me. You can read the docs directly about the @ORM\Table here (and you'll see you're using it correctly): http://docs.doctrine-project.org/projects/doctrine-orm ...
weaverryan
weaverryan
Read Full Comment
... "Doctrine" tab on the profiler. On this page, you can see what the query looks like, to see if Doctrine is doing anything weird. It *should* simply be executing a query with *no* ORDER BY on it. If this is true, then it's ...
weaverryan
weaverryan
Read Full Comment
... actually happened :). A flow might be: A) You previously work on the Doctrine tutorial (with `vinyl_mix`) B) You boot up this project, but point it to the same database. C) Run `make:migration` Doctrine will ...
weaverryan
weaverryan
Read Full Comment
... database-with-doctrine so I just reverted the repo to the state before installing doctrine and security bundle, and retried going step by step again, things seem to work fine now, thanks for the suggestion and sorry for the late reply!!
Hi SymfonyCasts! I have a question about error handling in repositories that have dbal queries. An example of a query is this: ``` ... use Doctrine\DBAL\Query\QueryBuilder; ... public ...
Annemieke-B
Annemieke-B
Read Full Comment
... ""doctrine_cache", "doctrine", "fos_user", "sensio_framework_extra", "monolog", "swiftmailer", "framework", "twig", "security"" in /Users/mattias/Documents/www/webtools/config/packages/monolog. yaml (which is loaded in ...
MattWelander
MattWelander
Read Full Comment
... to the same value as they did, thereby losing our vote. My solution would be to create functions in the database to up-vote and down-vote in a transaction. I've worked through all the doctrine related tutorials and not ...
... Fatal error: Uncaught ReflectionException: Class "Doctrine\Common\Cache\ArrayCache" does not exist in /opt/www/symfony/vue-symfony/vendor/symfony/dependency-injection/ContainerBuilder.php:1089 ` and similar whenever I ...
davidmintz
davidmintz
Read Full Comment
... aggregation results and gets a wrong $data object this way with 'results' and 'count'. Resulting in Notice: Undefined index: _id ``` "file": "/Users/danny.matthijs/Projects/app/vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/UnitOfWork.php", "line": 2831, ``` ...
... cache:clear returned with error code 255 I also tried --with-all-dependencies, composer require nexylan/slack-bundle:2.3.0 , composer update "symfony/*" --with-all-dependencies , composer require doctrine/doctrine ...
... Yeah, I'm 100%(notreally) new to "Symfony" and Doctrine, I mean, not really that new to symfony itself, as I've been using a custom implementation of Silex from a friend for about 2 years, the learning curve into ...
jlchafardet
jlchafardet
Read Full Comment
... mysql container. Adding this command line for the mysql service to the docker-compose file takes care of the problem. ``` .... services: ###> doctrine/doctrine-bundle ### database: image: 'mysql:latest ...
Hey Denrolya! That's an interesting question! I've never done it before, but I believe you need a custom normalizer. When you have a paginated response, what really happens (assuming you're using Doctrine ORM) is that ...
weaverryan
weaverryan
Read Full Comment
... of elements, is there a way to execute this fixture. ` namespace App\DataFixtures; use App\Entity\Category; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; use Faker\Factory; class ...