0
votes

Is there a better way of determining which version of Propel that Symfony 1.4 is built upon? Right now I am having to do:

$ -> ack -i version /path/to/symfony/lib/plugins/sfPropelPlugin/lib/vendor/

And as of now I am seeing this:

/path/to/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/default.properties
19:propel.version = 1.4.2

So I am assuming that Symfony v1.4.16 is using Propel version 1.4.2.

1
You're right. But you need to get it programmatically or just for information?j0k
I was hoping there was a way to do it via the cli using something like: php symfony propel:version. Seems like it would be common sense to include a way to display the version like any other service, api we use on linux (i.e. ack -v)Mike Purcell
Maybe you can propose it :)j0k
@j0K: Check the posted answer, they agreed to add it.Mike Purcell
They do not really agreed atm :)j0k

1 Answers

1
votes

At this time, propel bundled with Symfony 1.x does not support the ability to determine the version, cleanly, via cli, however you can use the ack or fgrep command as I stated in OP. But if you use the sfPropelORMPlugin plugin, which allows you to use propel 1.6 with Symfony 1.x, they have opted to add this functionality, which I assume will be available soon. https://github.com/propelorm/sfPropelORMPlugin/pull/152