... for the same song twice, then i will have some redundancy in my database, which i am aiming to avoid.
So my approach will be the following: Extending the "join tables". As I don't see by now that doctrine gives me the ...
... installs, 0 updates, 0 removals
- Installing symfony/flex (v1.12.2): Extracting archive
- Installing doctrine/lexer (1.2.1): Extracting archive
- Installing psr/container (1.0.0): Extracting archive
- Installing ...
... good, I'd like to keep all the "setting things not writable by the user"-logic in the same place if you know what I mean.
One way would be to use stof/doctrine-extensions-bundle, but I don't like this bundle very much ...
... object *before* it was modified by the request). And (B) you will probably need a custom Doctrine extension (https://api-platform.com/docs/core/extensions/#custom-doctrine-orm-extension) so that you can also *filter* the ...
Hey Olivier Mellinger!
Sorry for the slow reply - nice to chat with you!
> I come across an "issue" or may be I don't understand one mechanism: how does Doctrine know what items from your collection are new or updates ...
... \ApiSubresource;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* @ApiResource()
* @UniqueEntity(fields={"maxId"})
*
* @ORM\Table(name="relation")
* @ORM\Entity()
*/
class ...
... findAny() method, a method not found warning
Make sense of course, because getRepository() method has "@return \Doctrine\Common\Persistence\ObjectRepository" where there're no any findAny() method, this method is from custom ...
... services
In this case, when Doctrine creates your cache service, it makes it private. And, there's not actually any way to change that... but that's ok! What you need to *change* is how you *fetch* the service. Instead of ...
...
```
namespace App\Security;
use App\Entity\Member;
use App\Form\LoginForm;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use ...
... even those little syntactic advantages have drawbacks, see Doctrine shortcuts etc.
With the new approach, now we need to explain why the application code/resources "work" differently from bundles. We need to explain ...
... do a simple, normal query through Doctrine for just the PsMessage entities that match these ids. It's a nice way to get most of the performance benefit of a raw SQL query in a complex situation, but still get back ...
... tool that you should use.
However, for better or worse, Doctrine won't help you with your views - it has almost nothing built into it for working with them. That's not a problem - it just means that you will need to do ...
... "bound" to the entity-class (this is the job of doctrine), I simply can pass the other form to the first one like in my ArtistFormType... In the builder I simply can do the following:
->add('address', AddressFormType::class ...
Yo Max!
Yea, amazingly, under many (but not all) situations, Doctrine DOES turn notice the renaming and turn it into a CHANGE query. That's pretty cool :). So, you're 100% right about doctrine:migrations:diff and ...
... are several valid ways to do that)
2) Install your composer vendors
```
composer install --optimize-autoloader
```
(the extra flag here is a small performance boost)
3) Clear your cache and maybe execute doctrine ...
... every program can have many lessons. You would do something similar with assignments and tests. In Doctrine, these would be a Program entity and a Lesson entity. The Lesson entity would have a ManyToOne relationship back ...
Thanks Ryan. I have been enjoying your lessons on Symfony, Twig, Drupal and Doctrine. My background is straight procedural PHP. Learning this much simultaneously is quite a task.
You said “the number of lessons ...
... in place, if the `owner` of a `DragonTreasure` is set to `null`, instead of saving that, Doctrine deletes the `DragonTreasure` entirely.
So perhaps `orphanRemoval` is missing. Or some thing in this process is not ...
... pointing at the same `src/Entity/` directory, right? I think (?) that would confuse things. For example, if you asked for the `ProductRepository`, to instantiate that object, it hits this line - https://github.com/doctrine ...
2725
Doctrine
Filter Results