Search code examples
ormsymfony1propel

How to identify ORM - Propel calls in many lines of Symony code?


I am new to Propel. And I have a project using Propel. And I need to identify all Propel calls in many lines of code. The project is made in Symfony.

By what specifications can I find all Propel calls ?

I mean evrey Propel::getConnection() is just a connections which can be used in multiple Propel calls ?

Or shall I need to look for every new Criteria(); and [TheObiect]Peer:: ?


Solution

  • The connections are (in my experience at least) totally handled behind the scenes. They are created automatically if needed and re-used if available. So searching for Propel::getConnection() will not help. You'll need to at least search for what you listed above. Even raw model objects have references to the Peers, like in ModelObject->save(). What is your goal?