2725 search results for Doctrine

... create a API Platform custom filter. Then, assuming you're using a database with a proper JSON type (like pgsql or MySQL 5.7 or higher), you would need to do a bit more work to query for the item via Doctrine. Basically ...
weaverryan
weaverryan
Read Full Comment
... "$registry" of method "__construct()" references interface "Symfony\Bridge\Doctrine\RegistryInterface" but no such service exists. Did you create a class that implements this interface? I changed the Repository classes ...
Hey AymDev! Yea, sorry about that issue. We've become aware that PHP 7.4.0 has an incompatibility issue with doctrine/annotations. You need to update doctrine/annotations to 1.7.0 or higher to fix it. You're right that ...
weaverryan
weaverryan
Read Full Comment
... doctrine. But I will try to back up my database then drop/create and re-generate the database with my current Entities and doctrine annotation to see if that will reset me to a clean working and proper doctrine/entity migration capability. I will update this thread after I try. Thanks Diego!
... beginners) too many options :). Here is an example starting project using it: https://github.com/CawaKharkov/symfony-micro To include Doctrine ORM, what you would need to do is: 1) Add DoctrineBundle to your kernel 2 ...
weaverryan
weaverryan
Read Full Comment
... you just need to go to further chapters to see the link how to buy the course instead of the video, e.g: https://symfonycasts.com/screencast/symfony-doctrine/saving-entities . Or, just go to the course overview page ...
Hey Mike, Unfortunately, any forms do not protect you from MySQL injection, your MySQL client should worry about it. And Doctrine do so if you use it the correct way, i.e. use parameters instead of concatenating ...
Hi guys! The doctrine/migrations library recently released a version 2.0. My guess is that you are getting this new version, which has some backwards compatibility breaks that are breaking the migrations. There are a ...
weaverryan
weaverryan
Read Full Comment
Hi, have You maybe wrote something about: How to organize Symfony project without ORM (Doctrine)? My company use Symfony without orm (with plain sql) and as a Symfony developer I have problem how to keep controller ...
Paweł C.
Paweł C.
Read Full Comment
Once again, you have made Symfony awesome for me, so let me shower some praise. ::shower:: I don't know if this is the right place for this question, but it is regarding Doctrine/MySQL and TimeZones. I was thinking ...
where i can find the next mentioned tutorial about doctrine? ...
Answered here! https://knpuniversity.com/screencast/symfony-doctrine#comment-2832272638 ...
weaverryan
weaverryan
Read Full Comment
Hello victor , Doctrine Migrations also generate migrations for PostgreSQL. ...
abdouniabdelkarim
abdouniabdelkarim
Read Full Comment
... PhpStrom doesn't generating doctrine repository. How to fix this?
... Yep, that's why Doctrine doesn't allow to hydrate objects partially
MolloKhan
MolloKhan
Read Full Comment
288 lines | src/Entity/User.php
// ... lines 1 - 7
use App\Doctrine\UserSetIsMvpListener;
// ... lines 9 - 41
class User implements UserInterface
{
// ... lines 44 - 286
}
See Code Block in Script
# config/packages/test/doctrine.yaml
doctrine:
dbal:
url: '%env(resolve:DATABASE_TEST_URL)%'
See Code Block in Script
20 lines | config/packages/messenger.yaml
framework:
messenger:
// ... lines 3 - 5
transports:
// ... lines 7 - 12
failed: 'doctrine://default?queue_name=failed'
// ... lines 14 - 20
See Code Block in Script
146 lines | src/Entity/CheeseListing.php
// ... lines 1 - 6
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter;
// ... lines 8 - 146
See Code Block in Script
16 lines | app/autoload.php
// ... lines 1 - 2
use Doctrine\Common\Annotations\AnnotationRegistry;
// ... lines 4 - 12
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
// ... lines 14 - 16
See Code Block in Script