This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//So this is how it looks like in composer, so I do believe I have the latest version: | |
"doctrine/orm": "~2.5@dev", | |
"doctrine/common": "~2.5@dev", | |
"doctrine/dbal": "dev-retry-logic as 2.5", | |
"doctrine/doctrine-bundle": "~1.2", | |
"doctrine/migrations": "~1.0@dev", | |
"doctrine/doctrine-migrations-bundle": "~2.1@dev", | |
//My issue is with the following code that generates the error Fatal error: | |
Call to undefined method Doctrine\ORM\QueryBuilder::insert() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* What I want to achieve | |
*/ | |
class FooSpec | |
{ | |
function it_does_stuff($collab) | |
{ | |
$collab->doCollabStuf()->willReturn('foo'); // Returns foo the first time |