doctrine2 - ZF2 + Doctrine + Composer + Upgrading Doctrine -


i'm thick in middle of zend framework 2 project using doctrine.

my understanding of composer functionality @ present pretty limited, know need read , want understand happing, don't have time right now, following. say, know should read manual, , do, i'm struggling time @ present.

i have installed doctrine in zf2 application adding following in 'require' section of composer.json file located in project route:

"doctrine/doctrine-orm-module": "0.*" 

a few days had run composer update on project install latest version of zf2 in order obtain bug fix.

looking @ doctrine-orm-module/src/doctrineormmodule/version.php believe have 0.4.0 installed.

i've hit bug in doctrine\dbal v2.3.4 (specifically bug http://www.doctrine-project.org/jira/browse/dbal-522) , believe need upgrade dbal 2.3.5 fix.

this problem. can't v2.3.5 of dbal using composer.

i tried editing doctrine-orm-module/composer.json , updating

"doctrine/dbal": ">=2.3.4", 

to

"doctrine/dbal": ">=2.3.5", 

and within doctrine-orm-module directory ran composer update, following output:

loading composer repositories package information updating dependencies (including require-dev) nothing install or update generating autoload files 

any in upgrade dbal version appreciate.

many thanks, familymangreg.

this worked me upgrade doctrine 2.4 - assuming if find right 2.3.5 version names following should work you.

i updated composer.json file in root of application folder follows;

    { "name": "zendframework/skeleton-application", "description": "skeleton application zf2", "license": "bsd-3-clause", "keywords": [     "framework",     "zf2" ], "homepage": "http://framework.zend.com/", "require": {     "php": ">=5.3.3",     "zendframework/zendframework": "2.*",     "zendframework/zend-developer-tools": "dev-master",     "doctrine/orm": "2.4.0-beta2",     "doctrine/dbal": "2.4.0-beta2",     "doctrine/common": "2.4.0-rc2",     "doctrine/doctrine-orm-module": "0.7.*",  } 

}

then run php composer.phar update

hope helps


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -