• Software
  • Random
  • Reading
  • Life
  • Leadership
Jake LitwickiJake Litwicki
  • Blog
  • Library
  •  Goals
    • 2021 Goals
    • 2020 Goals
    • 2019 Goals
    • 2018 Goals
  • Woodworking
  • The MOAB

serializer

Random

Fix JSON serialization root as object instead of array in Symfony

JMS Serializer is perhaps my favorite and most frequently used open source package, and I am infinitely thankful for Johannes Schmitt for his contribution. However, with heavy usage of Annotations JMS can become frustrating at times. Especially when building API data that you’re expecting to be formatted as an array Read more…

By Jake Litwicki, 7 yearsJuly 17, 2015 ago
Random

“Smart” Accessor in Doctrine Entity

Easily add some logic to filter out specific entities from an ArrayCollection in Symfony2. In this simple example, I wrote an app that had Node, and Comment entities separately, as well as an explicitly defined NodeComment entity. In my Node entity, I want to serialize all of the associated comments. But rather than Read more…

By Jake Litwicki, 7 years ago
Related Posts
    Categories
    • Gaming
    • Leadership
    • Life
    • Random
    • Reading
    • Software
    • Woodworking

    Jake Litwicki Follow

    Head of Engineering @ AWS Amplify Studio, CLI, and Hosting, #wallpc gamer, #whitesox baseball, tree-hugger.

    jakelitwicki
    jakelitwicki Jake Litwicki @jakelitwicki ·
    11 Aug

    TIL even if you pay the $100 for TSA pre check there’s a 10% chance you don’t get to use it. Also the Seattle TSA line is slower than the “normal” line for the half of my family that weren’t in the 10% — Nice!

    Reply on Twitter 1557870276850749440 Retweet on Twitter 1557870276850749440 Like on Twitter 1557870276850749440 Twitter 1557870276850749440
    jakelitwicki Jake Litwicki @jakelitwicki ·
    3 Aug

    Life is good. Be kind. Hoppy Vacation everyone!

    Reply on Twitter 1554943289706524672 Retweet on Twitter 1554943289706524672 Like on Twitter 1554943289706524672 4 Twitter 1554943289706524672
    Load More

    • Curriculum Vitae
    • 2019 Goals
    • Blog
    Hestia | Developed by ThemeIsle