Creating the User Entity
... check the SQL: CREATE TABLE user - looks good!
Run it with:
php bin/console doctrine:migration:migrate
Perfect! We have a gorgeous new Doctrine entity... but as far as API Platform ...
... saving logic). Another example could be: when a new `User` is created, run code to send a welcome email.
Btw, if the solution feels a bit "cumbersome", I actually agree! API Platform could choose to add a system where ...
oh heck yeah, thanks! Was having the same thing and it was stumping me.
Since I was dealing with PATCH instead of PUT because of the recent api-platform changes I was looking into that direction.
but setName() was ...
Hey @aratinau!
To be honest, I don't have any idea! I just moved myself to this part of the project and even upgraded to the latest version of API Platform, just in case something changed. In my app, the inner state ...
Hey @Hugues!
Hmm, interesting! Let's think about this. If you *don't* return something from your processor, then API Platform will ultimately serialize the `$data` argument that you passed in. In your case, unless ...
... especially in a fresh project. It makes me think (?) that maybe you're doing some subtle formatting wrong (e.g. on the attributes) and API Platform isn't seeing them? It's definitely a very odd thing, which often means it's ...
... is interesting... but at the same time, I'm getting a rough sense from the tech people I follow that REST if winning and GraphQL is starting to die a bit. Check out this recent tweet from API Platform lead dev Kévin ...
Actually, trying to separate reading and writing didn't work for me, because when I add
`stateOptions: new Options(entityClass: SomeClass::class)`,
api platform serialization listener sets force_resource_class ...
... return string.but i got error:
> "hydra:description": "ApiPlatform\\Symfony\\EventListener\\WriteListener::getObjectClass(): Argument #1 ($object) must be of type object, string given, called in \/var\/www\/fast\/vendor\/api ...
... partial replace have now to be done with the PATCH method.
You can change this behavior in the config file (api_platform.yaml) : change the `standard_put` to `false`
```
api_platform:
title: Hello API Platform ...
... single item), which is fine (you don't always need to follow the result), but as API Platform tries to be RESTful, doing something like this is quite custom. There MAY be some trick to do it, but I'm not sure. Again ...
Hi! I have an issue by using a custom normalizer (but not with API Platform). As mentioned in the Symfony documentation, it's possible to create a custom normalizer and inject services in its constructor :
```
class ...
... ',
fromClass: User::class,
),
],
)]
```
Version 2 of API Platform had a concept of subresources, version 3 doesn't, but I'm not sure what to pass to create the route.
```php
$userId = 4;
$url ...
... object.getOwner() == user"` and no errors I'll have). I don't know what's going on. Please help me. I'm using API Platform 2.7 and Symfony 4.4
Jakub
... the app from work and tested it under linux and it still don't work even if i update to api platform 3.
Just the `plainPassword` prop is null, all other props are filled.
As example i send this via axios:
```
{"roles ...
My project used symfony 6.0.15 and Api platform 2.7 and the processor way is not yet available.
But the datapersister way does not work. The method persist is called but the plain password field is always empty. I ...
Hi Mehul-J,
I've had the same problem. Probably you've managed your problem till now, but if someone will have same issue, maybe my solution will help. In my case increasing version of symfony to 4.4, api platform ...
... be of type array|string, null given". This error is related to "./vendor/api-platform/core/src/Bridge/Doctrine/Orm/Extension/FilterEagerLoadingExtension.php" file and line 155.
I don't know why this function is given ...
Hey Nathanael!
That's interesting. Yes, the `UuidInterface` type should make it so that this denormalizer - https://github.com/api-platform/core/blob/2.7/src/RamseyUuid/Serializer/UuidDenormalizer.php - is called to ...
... ] .filter-content .form-widget-compound > div > div:first-child {
display: none;
}
```
I really really recommend to avoid this easy-admin-bundle and use api-platform to implement crud-action and build the UI's with Vue or React.
1026
API Platform
Filter Results