i have i guess simple problem, but i cant get it working properly:

Im getting this error: `App\Entity\Commands::setServerID(): Argument #1 ($serverID) must be of type ?App\Entity\Servers, string given`
And when i try to do add new element via api-platform its working correctly:

[![enter image description here](https://i.stack.imgur.com/HEpwK.png)](https://i.stack.imgur.com/HEpwK.png)

And here is result:

[![enter image description here](https://i.stack.imgur.com/FTPfz.png)](https://i.stack.imgur.com/FTPfz.png)

But when i try to do it via postman or in my controller in symfony im getting error mentioned in begining:

```php
        $commandDB = new Commands();
        $commandDB->setCommand($command);
        $commandDB->setStatusCode(1);
        $commandDB->setOutput("added to DB");
        $commandDB->setCreatedAt($date);
        $commandDB->setServerID($serverid);

```

My guess is that apiplatform was able to take '/api/servers/1' and understand that this is IRI and it is entity, and controller is not, but is there's any way to fix it?

Thanks