Skip to content

Instantly share code, notes, and snippets.

@smhg
Last active May 15, 2023 19:47
Show Gist options
  • Save smhg/75bccfacef0884d7410e941ce0512711 to your computer and use it in GitHub Desktop.
Save smhg/75bccfacef0884d7410e941ce0512711 to your computer and use it in GitHub Desktop.
Migrate Propel v1.7.2 to v2.0.0-beta3
  • convert old configuration to new format
  • run propel sql:build
  • run propel model:build
  • run propel config:convert
  • remove/replace Peer class usage
  • match Base class method signatures (more typing)
  • replace BasePeer::TYPE_STUDLYPHPNAME by TableMap::TYPE_CAMELNAME
  • remove /om and /map dirs
  • add identifierQuoting="true" to schema.xml
  • fix reset(), end(), current() on collections by casting them to arrays (see PHP 7.4 changelog)
  • change getTimeColumn(strftimeformat) into getTimeColumn(DateTimeformat)
  • change ->filterByColumn('%abc%') into ->filterByColumn('abc', Criteria::LIKE)
  • change e.g. PropelObjectCollection into Propel\Runtime\Collection\ObjectCollection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment