Comments (3)
I fixed the issue with the next syntax :
use JMS\Serializer\Annotation\AccessType;
#[AccessType(type: 'public_method')]
class User { }
I think it would be a good thing to update the documentation
from serializer.
Thanks for feedback! I think it is time to make docs Attributes first :)
from serializer.
There is a small section about it : Converting your annotations to attributes
from serializer.
Related Issues (20)
- JMS serializer implements Symfony serializer HOT 4
- "Can't use incorrect type integer for collection" on PHPDoc-typed integer, boolean or double HOT 1
- stdClass Serialization Does Not Use Property Naming Strategy HOT 3
- Question: How to handle de-/serializing unions (using native type hints)? HOT 5
- Serialization of Symfony\Component\Mime\Address HOT 4
- Undefined property: JsonDeserializationVisitor::$navigator sence version 3.23 HOT 2
- The dependency on doctrine/annotations should become an optional one HOT 2
- Minor Issue from Triggering Autoload Before Expanding Class Names HOT 2
- ORM 3.0 Compat HOT 8
- Adding tideways spans inside JMS serializer HOT 5
- Serialization of objects with missing attribute errors HOT 2
- Feature request: Allow literal discriminator values HOT 2
- Use another field than "id" to find Doctrine entity HOT 3
- Change to optional Doctrine/Annotations package introduces a breaking change HOT 10
- Enum deserializer
- Missing fields are replaced with null HOT 1
- Test Failures with `doctrine/phpcr-odm` > 2.00 HOT 1
- Problem when trying do deserialize a json with an array HOT 3
- Support `@phpstan-import-type` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serializer.