How upgrade propel 1.6 to 1.7? - php

I have a project with Symfony 2.6.4 and Propel 1.6.6-dev. I want upgrade propel to 1.7, How I do? In the official documentation I don't see how upgrade it.
I am using Composer.
I am getting this error when I run composer update:
The .git directory is missing from /vendor/pkpass/pkpass, see getcomposer.org/commit-deps for more information

git clone git://github.com/propelorm/Propel lib/propel

Related

symfony 2 sylius bundle lost (TranslationBundle )

I try to install Sylius ResourceBundle on my project but when i run my symfony project, i get this error :
Class 'Sylius\Bundle\TranslationBundle\DependencyInjection\AbstractTranslationExtension' not found
I can't find Sylius TranslationBundle .
How can i fix it ?
There is a bug in version 0.13. You probably want to use version 0.12 until the new one is more stable. Otherwise install the edge version (replace "~0.13.*" with "dev-master" in your composer.json file) and hope for the best.
This is fixed in the 0.14#dev.

FOSUserBundle for symfony 2.4.3

I want to start a new project on symfony 2.4.3 and I need the functionality of the fosuserbundle. My Problem: On their github (https://github.com/FriendsOfSymfony/FOSUserBundle) in the documentation they recommand 2.1.x.
Here , a user says you should install fosuserbundle manually but this question is for symfony 2.3.
Can I use the bundle on my version of symfony? If yes, can I install it with composer? If no, are there any similar bundles that I can use instead?
Thanks in advance
This version of the bundle requires Symfony 2.1+. If you are using Symfony 2.0.x, please use the 1.2.x releases of the bundle.
From their docs. 2.1+ means, 2.1, 2.2, 2.3, 2.4, ... 2.n So 2.3 is perfectly valid.
Moreover, Composer handles the dependencies for you, so just require it and run composer update, if the Symfony version is not supported the command fails and you know it doesn't support your current version, if it succeeds everything is working perfectly.

Which version of gedmo should I specify for Doctrine 2.1.7 with symofny2.0.15?

My Bash refuse to process to a databse update since I've installed gedmo for S2.
I'm wondering if its because I've installed the wrong version of Gedmo.
I have Doctrine 2.1.7 and i need to install the 2.1.x version of gedmo-doctrine-extensions how can specify this to my deps file ?
For now I have
[gedmo-doctrine-extensions]
git=http://github.com/l3pp4rd/DoctrineExtensions.git
But when trying to enter the doctrine:schema:update --force command, I have "Class 'Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator' not found in (my path)\vendor\gedmo-doctrine-extension\lib\Gedmo\Mapping\ExtensionMetadataFactory.php on line 170"
So i'm assuming it is due to the version of gedmo I use, Am I Right ?
I'm using 2.3.0 version for my project based on Symfony 2.0.15 and Doctrine 2.1.7
[gedmo-doctrine-extensions]
git=http://github.com/l3pp4rd/DoctrineExtensions.git
version=v2.3.0
Anyhow you can look on http://github.com/l3pp4rd/DoctrineExtensions.git to see what version you want/need and add it into your deps file under version option.
P.S. I guess you already know, but when you add version info into your deps file, you need to run vendors script, or if you're using composer use it to update dependencies.

How to install SonataAdminBundle on Wamp?

I am try to install Sonata Admin Bundle on WAMP . To begin, add the dependent bundles to the vendor/bundles directory. Add the following lines to the file deps.
[SonatajQueryBundle]
git=http://github.com/sonata-project/SonatajQueryBundle.git
target=/bundles/Sonata/jQueryBundle
[SonataUserBundle]
git=http://github.com/sonata-project/SonataUserBundle.git
target=/bundles/Sonata/UserBundle
[SonataAdminBundle]
git=http://github.com/sonata-project/SonataAdminBundle.git
target=/bundles/Sonata/AdminBundle
[KnpMenuBundle]
git=https://github.com/KnpLabs/KnpMenuBundle.git
target=/bundles/Knp/Bundle/MenuBundle
[KnpMenu]
git=https://github.com/KnpLabs/KnpMenu.git
target=/knp/menu
[SonataDoctrineORMAdminBundle]
git=http://github.com/sonata-project/SonataDoctrineORMAdminBundle.git
target=/bundles/Sonata/DoctrineORMAdminBundle
Now problem in install these bundle in vendor. I run this commend php bin/vendors install but it's show Try to run ./bin/vendors install --reinstall
Is there something wrong with my Bundle. I am really not sure what to do about this. Please help.
I appreciate all the help.
Thanks!
You might be using incompatible versions of Symfony and SonataAdminBundle.
Also, you might be missing SonataBlockBundle and SonataCacheBundle which are required with the latest versions of SonataAdminBundle (have a look at the SonataAdmin installation reference). Symfony, SonataAdminBundle and Doctrine2 only work together in specific combinations.
Suggestion: Try the relevant instructions in this tutorial, or better yet, clone this repository and configure it according to the instructions.
You'll have a working install, to which you can then add your existing bundle.

Star plugins for Symfony

I use Symfony 1.4.12 .
If i install http://www.symfony-project.org/plugins/sfWidgetFormJqueryRatingPlugin or http://www.symfony-project.org/plugins/mpStarRatingPlugin
i have error:
You try to install a symfony 1.0 plugin.
Please read the help message of this task to know how to install a plugin for the current version of symfony.
previously without a problem i installed sfGuardDoctrinePlugin. How can i fix it?
It seems that the package was not updated. Did you tried to use the svn trunk version?

Categories