Symfony - Propel - Determine current version of propel - symfony1

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.

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

Related

How to downgrade php from 5.6 to 5.5 on Fedora 21

I need to do the subject because I'm developing with the team on PHP 5.5, but my current Fedora version contains PHP 5.6.
I've found a Remi's repo contining PHP 5.5 for FC-21, installed it as described in "Install Howto" section. But I cannot run the Apache to use with PHP v.5.5. Please suggest what I can do to have desired?
you can try to downgrade your current installation using the packet manager by issuing the command yum downgrade php55 see downgrade or rollback updates, where you can also specify a specific version. Before that I suggest you to first verify your installation history about php if its is present.
Another way is to install the specific version you want see the answer here and then add a rule to block further updates in /etc/yum.conf see here for the blocking rule

Grails Wrapper: run/re-run before or after change version?

I tried looking for the answer for this here but couldn't find it. If this is documented somewhere, please send the link as a comment and I'll delete the question.
I can't figure out the proper order for using Grails Wrapper when upgrading an app version:
Do I run grails wrapper and then change application.properties to the new version of Grails, and then execute all future commands using grailsw?; or
Do I change application.properties to the new version, then run grails wrapper, and then run all future commands with grailsw?
Running grails wrapper will download the version of the wrapper specified in application.properties, so you should run it after changing the version.

how to find your project current versions in grails

I want to know the versions of the software used while developing the project, Suppose If there is an existing project In grails ,so I want to know the version of grails as well as version of Groovy for that project
Metadata regarding a project in Grails is kept in application.properties.
Within this file you will find the version of Grails used for the project under the key app.grails.version.
The version of Groovy used however is not kept in this file and is determined by the version of Grails being used. To determine the version of Groovy used by a specific version of Grails visit the introduction section of the Grails documentation.
edit
As pointed out in another answer, if you have target version of Grails already downloaded you can search for the version of Groovy being used by that version of Grails.
*nix
$ cd grails-X.X.X
$ find . -name "groovy*jar"
win32
> cd grails-x.x.x
> dir /s "groovy*.jar"
From controllers/services:
def appVersion=Metadata.current.'app.grails.version'
def appName=Metadata.current.'app.name'
From gsp:
App Version <g:meta name="app.version"/>
Built with Grails <g:meta name="app.grails.version"/>
Added extra information to figure out a grails application version from raw text files :
If you have a grails 3 application, you should find a build.gradle in the main root of your application folder:
version "0.1" According to this grails 3 project the version of this application is 0.1
Grails version is 3.1.1 according to gradle.properties
On a grails 2 project you will find application.properties in the main project root:
According to this grails 2 project
grails version is 2.4.4
App version is 0.1
If you already have a project and want to learn which grails version it uses. You can find it in gradle.properties file.
The content of the file is like the following
grailsVersion=4.0.1
gorm.version=7.0.2.RELEASE
As of Grails 3, this is:
Version <g:meta name="info.app.version"/>
Notice the info.
http://docs.grails.org/3.0.17/ref/Tags/meta.html
use application.properties in the root of the grails application
To find out which version of groovy is used with particular version of grails I always use simple find:
$ cd grails-X.X.X
$ find . -name "groovy*jar"
Maybe I'm just too lazy to dig into websites... ;-)
You can see application name,grails version,application version from application.properties file of grails project
I face the same issue, I found simplest way to find version by simple command.
run
grails clean
then it prints
Welcome to Grails 1.3.7 - http://grails.org/

Upgrade from symfony 1.0.11 to symfony 1.0.22

I want to update symfony 1.0.11 to symfony 1.0.22. I am using php 5.1.6. Do I need to do any upgrades in my symfony code level as well? Or just upgrading the symfony library will do the trick for me?
You may have to change some symfony function depend on deprecated function and removed functions.
To be safe, backup your symfony project, just in case.

Migration Symfony 1.2.1 -> 1.4.11

At what should I need to be careful when I migrate a project made in with Symfony 1.2.1 to Symfony 1.4.11 ?
You should follow the instructions here: http://www.symfony-project.org/tutorial/1_4/en/upgrade
There is a validator which you can run on your code that will tell you which files have code that needs to be changed. Also, remember since you want to go from 1.2.1 -> 1.4.11, you will first need to upgrade to 1.3. So you would run:
$ php symfony project:upgrade1.3
and then switch to 1.4.

Resources