Symfony – Propel – Determine Propel Version
I was recently working on a project with Symfony 1.2 and wanted to know the version of Propel that was bundled with it. After some toying around with the `php symfony help` command, I noticed that no commands regarding version fell under the propel header, I was hoping for something like `php symfony propel:version`. Because I still needed to know the bundled Propel version I ended up issuing the following command:
$ -> ack -i version /path/to/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel/Propel.php * @version $Revision: 989 $ * The Propel version. const VERSION = '1.3.0-dev';
According to the source code, the version of Propel bundled with Symfony 1.2 is 1.3.0-dev (yikes). So if you want to see the version of Propel bundled with the version of Syfmony you are using, just use the above `ack` (or fgrep) command.
On a side note, if you are using Symfony 1.x, you should look into the sfPropelORMPlugin, it will allow you to use the latest version of Propel (1.6) with Symfony 1.x, which is good because there are several new features in Propel 1.6 that make developing easier and improve performance. And they actually added the ability to view the version without having to ack the codebase.
- PHP – Doctrine – Soft Delete – Multiple Rows at a Time
- PHP – Doctrine – DQL – Select Subquery
- Symfony – Share Template Across Multiple Apps
- PHP – Symfony – Speed up CLI Commands – Do Not Load Web Plugins
- PHP – Symfony – Build Model – No yml schema found
- Symfony – Doctrine – Call to a member function evictAll on a non-object
- Symfony – Standard API for Logging Using __callStatic
- Symfony – Symfony 2 Security Audit Results
- Symfony – Serve External Apis from External Hosts – jQuery – Yui
- Symfony – sfGuardPlugin – Use Email Instead of Username