You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I'm doing an api rest that comunicate with couchdb server. I don't use Doctrine.
I have User entity and I get info from couchDB users db. In CouchDB the id of a document is like "org.couchdb.user:xxx".
The problem is that any id string with "." or ":", the IRI can't be generated. You recieve "Unable to generate an IRI" Error.
I think that should be catch this case or maybe there is another way that I can't find.
For the moment, I'm transforming my Id in getter but I know that this is not a good solution.
public function getId(): ?string { return str_ireplace([':','.'],['-','*'], $this->id); }
The text was updated successfully, but these errors were encountered:
API Platform version(s) affected: 3.2.20
Description
I'm doing an api rest that comunicate with couchdb server. I don't use Doctrine.
I have User entity and I get info from couchDB users db. In CouchDB the id of a document is like "org.couchdb.user:xxx".
The problem is that any id string with "." or ":", the IRI can't be generated. You recieve "Unable to generate an IRI" Error.
I think that should be catch this case or maybe there is another way that I can't find.
For the moment, I'm transforming my Id in getter but I know that this is not a good solution.
public function getId(): ?string { return str_ireplace([':','.'],['-','*'], $this->id); }
The text was updated successfully, but these errors were encountered: