diff --git a/.travis.yml b/.travis.yml index 16f35806..f0ebb87f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,5 +13,5 @@ before_script: - sudo -u postgres psql orm_behaviors_test -c "create extension earthdistance" - composer install --dev -script: phpunit --testdox +script: vendor/bin/phpunit --testdox diff --git a/composer.lock b/composer.lock index 2407c2d3..52642039 100644 --- a/composer.lock +++ b/composer.lock @@ -1,9 +1,10 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" + "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" ], - "hash": "005a81f2cbad6866eb29d45f7934025d", + "hash": "4e24e15ddda87c7f9725ee9bbc1d4d9e", "packages": [ { "name": "doctrine/annotations", @@ -11,12 +12,12 @@ "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "a11349d39d85bef75a71bd69bd604ac4fb993f03" + "reference": "e93f3b718c421daddff58c4a4af1aee574472cd6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/a11349d39d85bef75a71bd69bd604ac4fb993f03", - "reference": "a11349d39d85bef75a71bd69bd604ac4fb993f03", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/e93f3b718c421daddff58c4a4af1aee574472cd6", + "reference": "e93f3b718c421daddff58c4a4af1aee574472cd6", "shasum": "" }, "require": { @@ -24,12 +25,13 @@ "php": ">=5.3.2" }, "require-dev": { - "doctrine/cache": "1.*" + "doctrine/cache": "1.*", + "phpunit/phpunit": "4.*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "1.3.x-dev" } }, "autoload": { @@ -42,17 +44,6 @@ "MIT" ], "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, { "name": "Roman Borschel", "email": "roman@code-factory.org" @@ -62,10 +53,16 @@ "email": "kontakt@beberlei.de" }, { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" } ], "description": "Docblock Annotations Parser", @@ -75,7 +72,7 @@ "docblock", "parser" ], - "time": "2013-12-20 21:39:07" + "time": "2014-07-27 16:33:24" }, { "name": "doctrine/cache", @@ -83,12 +80,12 @@ "source": { "type": "git", "url": "https://github.com/doctrine/cache.git", - "reference": "36c4eee5051629524389da376ba270f15765e49f" + "reference": "72121e68265cd8b37f9b69778308251f6c5133e4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/36c4eee5051629524389da376ba270f15765e49f", - "reference": "36c4eee5051629524389da376ba270f15765e49f", + "url": "https://api.github.com/repos/doctrine/cache/zipball/72121e68265cd8b37f9b69778308251f6c5133e4", + "reference": "72121e68265cd8b37f9b69778308251f6c5133e4", "shasum": "" }, "require": { @@ -117,17 +114,6 @@ "MIT" ], "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, { "name": "Roman Borschel", "email": "roman@code-factory.org" @@ -137,10 +123,16 @@ "email": "kontakt@beberlei.de" }, { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" } ], "description": "Caching library offering an object-oriented API for many cache backends", @@ -149,7 +141,7 @@ "cache", "caching" ], - "time": "2013-12-18 17:21:03" + "time": "2014-08-05 12:51:19" }, { "name": "doctrine/collections", @@ -157,17 +149,20 @@ "source": { "type": "git", "url": "https://github.com/doctrine/collections.git", - "reference": "e6d8f1240e10f268c8e8c30e9e88a12853f84695" + "reference": "432240f56fbc9a811dbf1ff8a45c1a1047ba1c0a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/collections/zipball/e6d8f1240e10f268c8e8c30e9e88a12853f84695", - "reference": "e6d8f1240e10f268c8e8c30e9e88a12853f84695", + "url": "https://api.github.com/repos/doctrine/collections/zipball/432240f56fbc9a811dbf1ff8a45c1a1047ba1c0a", + "reference": "432240f56fbc9a811dbf1ff8a45c1a1047ba1c0a", "shasum": "" }, "require": { "php": ">=5.3.2" }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, "type": "library", "extra": { "branch-alias": { @@ -184,17 +179,6 @@ "MIT" ], "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, { "name": "Roman Borschel", "email": "roman@code-factory.org" @@ -204,10 +188,16 @@ "email": "kontakt@beberlei.de" }, { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" } ], "description": "Collections Abstraction library", @@ -217,7 +207,7 @@ "collections", "iterator" ], - "time": "2014-01-01 23:58:38" + "time": "2014-07-29 20:07:28" }, { "name": "doctrine/common", @@ -225,12 +215,12 @@ "source": { "type": "git", "url": "https://github.com/doctrine/common.git", - "reference": "c94d6ff79e25418b1225e187c782bf4742f23a8b" + "reference": "ae92d076442e27b6910dd86a1292a8867cf5cfe4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/common/zipball/c94d6ff79e25418b1225e187c782bf4742f23a8b", - "reference": "c94d6ff79e25418b1225e187c782bf4742f23a8b", + "url": "https://api.github.com/repos/doctrine/common/zipball/ae92d076442e27b6910dd86a1292a8867cf5cfe4", + "reference": "ae92d076442e27b6910dd86a1292a8867cf5cfe4", "shasum": "" }, "require": { @@ -241,6 +231,9 @@ "doctrine/lexer": "1.*", "php": ">=5.3.2" }, + "require-dev": { + "phpunit/phpunit": "~3.7" + }, "type": "library", "extra": { "branch-alias": { @@ -279,7 +272,7 @@ { "name": "Johannes Schmitt", "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", + "homepage": "https://github.com/schmittjoh", "role": "Developer of wrapped JMSSerializerBundle" } ], @@ -292,7 +285,7 @@ "persistence", "spl" ], - "time": "2013-09-07 10:20:35" + "time": "2014-05-21 19:29:23" }, { "name": "doctrine/inflector", @@ -300,17 +293,20 @@ "source": { "type": "git", "url": "https://github.com/doctrine/inflector.git", - "reference": "a81c334f2764b09e2f13a55cfd8fe3233946f728" + "reference": "64de2fe36d578c5d5f3807ac7984547bbba5f7c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/a81c334f2764b09e2f13a55cfd8fe3233946f728", - "reference": "a81c334f2764b09e2f13a55cfd8fe3233946f728", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/64de2fe36d578c5d5f3807ac7984547bbba5f7c5", + "reference": "64de2fe36d578c5d5f3807ac7984547bbba5f7c5", "shasum": "" }, "require": { "php": ">=5.3.2" }, + "require-dev": { + "phpunit/phpunit": "4.*" + }, "type": "library", "extra": { "branch-alias": { @@ -349,7 +345,7 @@ { "name": "Johannes Schmitt", "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", + "homepage": "https://github.com/schmittjoh", "role": "Developer of wrapped JMSSerializerBundle" } ], @@ -361,7 +357,7 @@ "singularize", "string" ], - "time": "2013-12-21 19:19:50" + "time": "2014-04-23 12:36:11" }, { "name": "doctrine/lexer", @@ -369,12 +365,12 @@ "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "f12a5f74e5f4a9e3f558f3288504e121edfad891" + "reference": "db77c80d33d72e33a62b80581e9d150af85de556" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/f12a5f74e5f4a9e3f558f3288504e121edfad891", - "reference": "f12a5f74e5f4a9e3f558f3288504e121edfad891", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/db77c80d33d72e33a62b80581e9d150af85de556", + "reference": "db77c80d33d72e33a62b80581e9d150af85de556", "shasum": "" }, "require": { @@ -408,7 +404,7 @@ { "name": "Johannes Schmitt", "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", + "homepage": "https://github.com/schmittjoh", "role": "Developer of wrapped JMSSerializerBundle" } ], @@ -418,7 +414,7 @@ "lexer", "parser" ], - "time": "2013-12-20 21:39:00" + "time": "2014-06-11 23:09:27" } ], "packages-dev": [ @@ -428,12 +424,12 @@ "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "0a7df7c58aeab4d1cef55a78e5ca50299a12a62b" + "reference": "3eebba76d0fd7ec0f0b2ea78d4aa29468957941c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/0a7df7c58aeab4d1cef55a78e5ca50299a12a62b", - "reference": "0a7df7c58aeab4d1cef55a78e5ca50299a12a62b", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/3eebba76d0fd7ec0f0b2ea78d4aa29468957941c", + "reference": "3eebba76d0fd7ec0f0b2ea78d4aa29468957941c", "shasum": "" }, "require": { @@ -441,12 +437,15 @@ "php": ">=5.3.2" }, "require-dev": { - "phpunit/phpunit": "3.7.*", + "phpunit/phpunit": "4.0.*", "symfony/console": "2.*" }, "suggest": { - "symfony/console": "Allows use of the command line interface" + "symfony/console": "For helpful console commands such as SQL execution and import of files." }, + "bin": [ + "bin/doctrine-dbal" + ], "type": "library", "extra": { "branch-alias": { @@ -463,17 +462,6 @@ "MIT" ], "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, { "name": "Roman Borschel", "email": "roman@code-factory.org" @@ -481,6 +469,14 @@ { "name": "Benjamin Eberlei", "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" } ], "description": "Database Abstraction Layer", @@ -491,7 +487,7 @@ "persistence", "queryobject" ], - "time": "2014-01-15 00:19:18" + "time": "2014-08-20 02:14:56" }, { "name": "doctrine/mongodb", @@ -499,12 +495,12 @@ "source": { "type": "git", "url": "https://github.com/doctrine/mongodb.git", - "reference": "ac63fdf9847a5ec6d44721526623e8bddaa25fe6" + "reference": "a226fce76171d9b22bfff05a9c32955022e46b2a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/mongodb/zipball/ac63fdf9847a5ec6d44721526623e8bddaa25fe6", - "reference": "ac63fdf9847a5ec6d44721526623e8bddaa25fe6", + "url": "https://api.github.com/repos/doctrine/mongodb/zipball/a226fce76171d9b22bfff05a9c32955022e46b2a", + "reference": "a226fce76171d9b22bfff05a9c32955022e46b2a", "shasum": "" }, "require": { @@ -521,7 +517,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { @@ -563,7 +559,7 @@ "mongodb", "persistence" ], - "time": "2014-01-09 21:24:02" + "time": "2014-04-29 21:15:18" }, { "name": "doctrine/mongodb-odm", @@ -571,12 +567,12 @@ "source": { "type": "git", "url": "https://github.com/doctrine/mongodb-odm.git", - "reference": "baab4bc755e69986385d5727387d4a3eb5ba23a1" + "reference": "66b78196b53d2984d6ed389806224823cd6b9b12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/mongodb-odm/zipball/baab4bc755e69986385d5727387d4a3eb5ba23a1", - "reference": "baab4bc755e69986385d5727387d4a3eb5ba23a1", + "url": "https://api.github.com/repos/doctrine/mongodb-odm/zipball/66b78196b53d2984d6ed389806224823cd6b9b12", + "reference": "66b78196b53d2984d6ed389806224823cd6b9b12", "shasum": "" }, "require": { @@ -585,7 +581,7 @@ "doctrine/collections": "~1.1", "doctrine/common": "2.4.*", "doctrine/inflector": "~1.0", - "doctrine/mongodb": "~1.1", + "doctrine/mongodb": ">=1.1.5,<2.0", "php": ">=5.3.2", "symfony/console": "~2.0" }, @@ -612,25 +608,20 @@ ], "authors": [ { - "name": "Bulat Shakirzyanov", - "email": "mallluhuct@gmail.com", - "homepage": "http://avalanche123.com" + "name": "Jonathan H. Wage", + "email": "jonwage@gmail.com" }, { - "name": "Jonathan H. Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" + "name": "Jeremy Mikola", + "email": "jmikola@gmail.com" }, { - "name": "Kris Wallsmith", - "email": "kris.wallsmith@gmail.com", - "homepage": "http://kriswallsmith.net/" + "name": "Bulat Shakirzyanov", + "email": "mallluhuct@gmail.com" }, { - "name": "Jeremy Mikola", - "email": "jmikola@gmail.com", - "homepage": "http://jmikola.net" + "name": "Kris Wallsmith", + "email": "kris.wallsmith@gmail.com" } ], "description": "Doctrine MongoDB Object Document Mapper", @@ -641,7 +632,7 @@ "odm", "persistence" ], - "time": "2014-01-14 00:48:18" + "time": "2014-08-05 15:33:21" }, { "name": "doctrine/orm", @@ -649,24 +640,25 @@ "source": { "type": "git", "url": "https://github.com/doctrine/doctrine2.git", - "reference": "cf43edd6a10ac8b17dc07bd40f9886e582a832b2" + "reference": "ff801879304dfc2bdec34222d4c03fa7bde3e4e4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/cf43edd6a10ac8b17dc07bd40f9886e582a832b2", - "reference": "cf43edd6a10ac8b17dc07bd40f9886e582a832b2", + "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/ff801879304dfc2bdec34222d4c03fa7bde3e4e4", + "reference": "ff801879304dfc2bdec34222d4c03fa7bde3e4e4", "shasum": "" }, "require": { - "doctrine/collections": "~1.1", + "doctrine/collections": "~1.2", "doctrine/dbal": ">=2.5-dev,<2.6-dev", "ext-pdo": "*", "php": ">=5.3.2", "symfony/console": "2.*" }, "require-dev": { + "phpunit/phpunit": "~4.0", "satooshi/php-coveralls": "dev-master", - "symfony/yaml": "2.1" + "symfony/yaml": "~2.1" }, "suggest": { "symfony/yaml": "If you want to use YAML Metadata Mapping Driver" @@ -691,17 +683,6 @@ "MIT" ], "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, { "name": "Roman Borschel", "email": "roman@code-factory.org" @@ -709,6 +690,14 @@ { "name": "Benjamin Eberlei", "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" } ], "description": "Object-Relational-Mapper for PHP", @@ -717,26 +706,26 @@ "database", "orm" ], - "time": "2014-01-14 22:50:33" + "time": "2014-08-18 20:35:52" }, { "name": "phpunit/php-code-coverage", - "version": "1.2.13", + "version": "1.2.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "466e7cd2554b4e264c9e3f31216d25ac0e5f3d94" + "reference": "61fed79803b6c75d461b909dfac05bbef5cd4f46" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/466e7cd2554b4e264c9e3f31216d25ac0e5f3d94", - "reference": "466e7cd2554b4e264c9e3f31216d25ac0e5f3d94", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/61fed79803b6c75d461b909dfac05bbef5cd4f46", + "reference": "61fed79803b6c75d461b909dfac05bbef5cd4f46", "shasum": "" }, "require": { "php": ">=5.3.3", "phpunit/php-file-iterator": ">=1.3.0@stable", - "phpunit/php-text-template": ">=1.1.1@stable", + "phpunit/php-text-template": ">=1.2.0@stable", "phpunit/php-token-stream": ">=1.1.3@stable" }, "require-dev": { @@ -778,7 +767,7 @@ "testing", "xunit" ], - "time": "2013-09-10 08:14:32" + "time": "2014-05-19 01:58:57" }, { "name": "phpunit/php-file-iterator", @@ -827,16 +816,16 @@ }, { "name": "phpunit/php-text-template", - "version": "1.1.4", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5180896f51c5b3648ac946b05f9ec02be78a0b23" + "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5180896f51c5b3648ac946b05f9ec02be78a0b23", - "reference": "5180896f51c5b3648ac946b05f9ec02be78a0b23", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/206dfefc0ffe9cebf65c413e3d0e809c82fbf00a", + "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a", "shasum": "" }, "require": { @@ -867,7 +856,7 @@ "keywords": [ "template" ], - "time": "2012-10-31 18:15:28" + "time": "2014-01-30 17:20:04" }, { "name": "phpunit/php-timer", @@ -919,12 +908,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "ad4e1e23ae01b483c16f600ff1bebec184588e32" + "reference": "980a02b40496a25ce38acb4d3f4949b77abf9f20" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/ad4e1e23ae01b483c16f600ff1bebec184588e32", - "reference": "ad4e1e23ae01b483c16f600ff1bebec184588e32", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/980a02b40496a25ce38acb4d3f4949b77abf9f20", + "reference": "980a02b40496a25ce38acb4d3f4949b77abf9f20", "shasum": "" }, "require": { @@ -943,9 +932,6 @@ ] }, "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" - ], "license": [ "BSD-3-Clause" ], @@ -961,7 +947,7 @@ "keywords": [ "tokenizer" ], - "time": "2014-03-03 05:10:30" + "time": "2014-08-14 16:51:26" }, { "name": "phpunit/phpunit", @@ -969,34 +955,33 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "4dbc3ab5de25a9ffd07796519f9f7f4aaddc37e0" + "reference": "ae6cefd7cc84586a5ef27e04bae11ee940ec63dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/4dbc3ab5de25a9ffd07796519f9f7f4aaddc37e0", - "reference": "4dbc3ab5de25a9ffd07796519f9f7f4aaddc37e0", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ae6cefd7cc84586a5ef27e04bae11ee940ec63dc", + "reference": "ae6cefd7cc84586a5ef27e04bae11ee940ec63dc", "shasum": "" }, "require": { + "ext-ctype": "*", "ext-dom": "*", + "ext-json": "*", "ext-pcre": "*", "ext-reflection": "*", "ext-spl": "*", "php": ">=5.3.3", - "phpunit/php-code-coverage": "~1.2.1", - "phpunit/php-file-iterator": "~1.3.1", - "phpunit/php-text-template": "~1.1.1", - "phpunit/php-timer": "~1.0.4", - "phpunit/phpunit-mock-objects": "~1.2.0", + "phpunit/php-code-coverage": "~1.2", + "phpunit/php-file-iterator": "~1.3", + "phpunit/php-text-template": "~1.1", + "phpunit/php-timer": "~1.0", + "phpunit/phpunit-mock-objects": "~1.2", "symfony/yaml": "~2.0" }, "require-dev": { "pear-pear.php.net/pear": "1.9.4" }, "suggest": { - "ext-json": "*", - "ext-simplexml": "*", - "ext-tokenizer": "*", "phpunit/php-invoker": "~1.1" }, "bin": [ @@ -1035,7 +1020,7 @@ "testing", "xunit" ], - "time": "2014-03-05 12:52:24" + "time": "2014-04-30 12:24:19" }, { "name": "phpunit/phpunit-mock-objects", @@ -1101,27 +1086,31 @@ "source": { "type": "git", "url": "https://github.com/symfony/Console.git", - "reference": "62a18a52e66662bc4bf1edf0b9916b97caad3418" + "reference": "919345e2757aa3d3aca1d1ce5a8f53f65d1990ef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Console/zipball/62a18a52e66662bc4bf1edf0b9916b97caad3418", - "reference": "62a18a52e66662bc4bf1edf0b9916b97caad3418", + "url": "https://api.github.com/repos/symfony/Console/zipball/919345e2757aa3d3aca1d1ce5a8f53f65d1990ef", + "reference": "919345e2757aa3d3aca1d1ce5a8f53f65d1990ef", "shasum": "" }, "require": { "php": ">=5.3.3" }, "require-dev": { - "symfony/event-dispatcher": "~2.1" + "psr/log": "~1.0", + "symfony/event-dispatcher": "~2.1", + "symfony/process": "~2.1" }, "suggest": { - "symfony/event-dispatcher": "" + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/process": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.5-dev" + "dev-master": "2.6-dev" } }, "autoload": { @@ -1134,18 +1123,18 @@ "MIT" ], "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, { "name": "Symfony Community", "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" } ], "description": "Symfony Console Component", "homepage": "http://symfony.com", - "time": "2014-01-07 15:22:10" + "time": "2014-08-14 16:37:29" }, { "name": "symfony/yaml", @@ -1154,12 +1143,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/Yaml.git", - "reference": "6194137af5f12fbcfc0cb21e269f47542b8beb47" + "reference": "d84b97a12046b2c34e8457626b9f2b72dec0c183" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Yaml/zipball/6194137af5f12fbcfc0cb21e269f47542b8beb47", - "reference": "6194137af5f12fbcfc0cb21e269f47542b8beb47", + "url": "https://api.github.com/repos/symfony/Yaml/zipball/d84b97a12046b2c34e8457626b9f2b72dec0c183", + "reference": "d84b97a12046b2c34e8457626b9f2b72dec0c183", "shasum": "" }, "require": { @@ -1168,7 +1157,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.5-dev" + "dev-master": "2.6-dev" } }, "autoload": { @@ -1181,20 +1170,18 @@ "MIT" ], "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com", - "homepage": "http://fabien.potencier.org", - "role": "Lead Developer" - }, { "name": "Symfony Community", "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" } ], "description": "Symfony Yaml Component", "homepage": "http://symfony.com", - "time": "2014-03-03 12:53:01" + "time": "2014-08-05 09:07:51" } ], "aliases": [ @@ -1204,10 +1191,12 @@ "stability-flags": { "doctrine/mongodb-odm": 20 }, + "prefer-stable": false, "platform": { "php": ">=5.4.0" }, "platform-dev": { - "ext-pdo_sqlite": "*" + "ext-pdo_sqlite": "*", + "ext-pdo_pgsql": "*" } } diff --git a/src/Knp/DoctrineBehaviors/ORM/Filterable/FilterableRepository.php b/src/Knp/DoctrineBehaviors/ORM/Filterable/FilterableRepository.php index 1a92be4f..03774f6f 100644 --- a/src/Knp/DoctrineBehaviors/ORM/Filterable/FilterableRepository.php +++ b/src/Knp/DoctrineBehaviors/ORM/Filterable/FilterableRepository.php @@ -59,12 +59,13 @@ abstract public function getInFilterColumns(); /** * Filter values * - * @param array $filters - array like ['e:name' => 'nameValue'] where "e" is entity alias query, so we can filter using joins. - * @return Doctrine\DBAL\Query\QueryBuilder + * @param array $filters - array like ['e:name' => 'nameValue'] where "e" is entity alias query, so we can filter using joins. + * @param \Doctrine\ORM\QueryBuilder + * @return \Doctrine\ORM\QueryBuilder */ public function filterBy(array $filters, QueryBuilder $qb = null) { - $filters = array_filter($filters, function($filter) { + $filters = array_filter($filters, function ($filter) { return !empty($filter); }); diff --git a/tests/Knp/DoctrineBehaviors/ORM/EntityManagerProvider.php b/tests/Knp/DoctrineBehaviors/ORM/EntityManagerProvider.php index 3f8184ce..232f919d 100644 --- a/tests/Knp/DoctrineBehaviors/ORM/EntityManagerProvider.php +++ b/tests/Knp/DoctrineBehaviors/ORM/EntityManagerProvider.php @@ -1,7 +1,8 @@ getAnnotatedConfig() : $config; $em = EntityManager::create($conn, $config, $evm ?: $this->getEventManager()); - $schema = array_map(function($class) use ($em) { + $schema = array_map(function ($class) use ($em) { return $em->getClassMetadata($class); }, (array) $this->getUsedEntityFixtures()); @@ -51,7 +52,7 @@ protected function getEntityManager(EventManager $evm = null, Configuration $con /** * Get annotation mapping configuration * - * @return Doctrine\ORM\Configuration + * @return \Doctrine\ORM\Configuration */ protected function getAnnotatedConfig() { @@ -121,6 +122,12 @@ protected function getAnnotatedConfig() ->will($this->returnValue(new DefaultRepositoryFactory())) ; + $config + ->expects($this->any()) + ->method('getDefaultQueryHints') + ->will($this->returnValue([])) + ; + return $config; } diff --git a/tests/Knp/DoctrineBehaviors/ORM/FilterableRepositoryTest.php b/tests/Knp/DoctrineBehaviors/ORM/FilterableRepositoryTest.php index af0f05c8..9aa69c53 100644 --- a/tests/Knp/DoctrineBehaviors/ORM/FilterableRepositoryTest.php +++ b/tests/Knp/DoctrineBehaviors/ORM/FilterableRepositoryTest.php @@ -1,6 +1,6 @@ createEntities(); - + /**@var \BehaviorFixtures\ORM\FilterableRepository $repository*/ $repository = $this->getEntityManager()->getRepository('BehaviorFixtures\ORM\FilterableEntity'); $collection = $repository->filterBy(['e:name' => 'name'])->getQuery()->execute();