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

doctrine

Random

Symfony3: JWT Authentication w/ Login Attempt Limits

One of my current projects is using JWT Authentication for an API built on Symfony (shocker, I know). One of the things I wanted to build into this was a limiter on the number of “login” attempts for the API that would lock someone out for x minutes after n failed attempts; Read more…

By Jake Litwicki, 4 years3 weeks 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, 6 years ago
Random

Load all mapped Entity classes from Doctrine

Ever wanted to create a simple dropdown of all the Entity classes you have mapped in Doctrine? I have! For a recent project I needed to create a sample API form and load the entity type first, so I needed a way to properly load every Entity that’s mapped programmatically Read more…

By Jake Litwicki, 6 years ago
Random

Rebase your database migrations to a single class file quickly

While developing, Doctrine Migrations can quickly become obsolete as you adjust your schema in the early stages of development. Nevertheless, Migrations are still a vital part of properly building compatibility for deployments. However, to consolidate and avoid having several (or in my case dozens) Migration Versions before you’ve got a Read more…

By Jake Litwicki, 6 years3 weeks ago
Random

Symfony dynamic Entity selection in FormType

Symfony is fantastic for building very quick snappy applications; especially CRUD apps. However, sometimes we want to quickly alter the default CRUD forms with some business logic. For example, if we have Products and Categories and want to be able to create new product entities with a specified category but somehow restrict which categories are Read more…

By Jake Litwicki, 6 years6 years ago
Random

Multiple dynamic EntityManagers in Symfony2

Symfony2 is fantastic when coupled with Doctrine, but unfortunately Doctrine has its limitations and does not inherently support dynamic EntityManager connections, because the parameters for each connection must be defined and loaded at the kernel level. This assumes that each of the connections have an identical schema mapped by Doctrine2. Read more…

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

    jakelitwicki

    Finding Mr. Shrimp is always a fun game! Finding Mr. Shrimp is always a fun game!
    Load More... Follow on Instagram

    Jake LitwickiFollow

    Jake Litwicki
    Retweet on TwitterJake Litwicki Retweeted
    nytimesThe New York Times@nytimes·
    20 Jan

    Watch Amanda Gorman, the youngest inaugural poet in U.S. history, recite her poem “The Hill We Climb” at President Biden's inauguration. http://nyti.ms/39NsKWB

    Reply on Twitter 1351972433847312385Retweet on Twitter 13519724338473123853722Like on Twitter 135197243384731238516759Twitter 1351972433847312385
    jakelitwickiJake Litwicki@jakelitwicki·
    20 Jan

    In addition to engineers of all levels I am especially excited to find an engineering leadership partner to help lead the @AWSAmplify team: https://www.amazon.jobs/en/jobs/1371647/software-development-manager-aws-amplify-cli

    Reply on Twitter 1351758618526248960Retweet on Twitter 13517586185262489605Like on Twitter 135175861852624896019Twitter 1351758618526248960
    Load More...

    Jake Litwicki

    Jake Litwicki
    YouTube Video UCKJ_tutmLkhtArpgeQ0BlsA_B0nCIAdPHPw Side by side Razer Kiyo webcam and Canon T6i Rebel on Windows 10.
    Side by side Razer Kiyo webcam and Canon T6i Rebel on Windows 10.
    Webcam vs. DSLR
    YouTube Video UCKJ_tutmLkhtArpgeQ0BlsA_B0nCIAdPHPw
    Sometimes you just gotta dance
    YouTube Video UCKJ_tutmLkhtArpgeQ0BlsA_o2S682vAze8
    Load More... Subscribe

    • Curriculum Vitae
    • 2019 Goals
    • Blog
    The thoughts and opinions shared on jakelitwicki.com are purely my own.