Skip to content

Instantly share code, notes, and snippets.

@grachevko
Last active April 26, 2020 18:28
Show Gist options
  • Save grachevko/3f64c06baaf38ce47e0c9972ab8e532d to your computer and use it in GitHub Desktop.
Save grachevko/3f64c06baaf38ce47e0c9972ab8e532d to your computer and use it in GitHub Desktop.
Replace Doctrine targetEntity string to costant class

find:

  • (targetEntity=)".+\\([^"]+)"
  • (class=)".+\\([^"]+)"

replace: $1$2::class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment