Skip to content

Instantly share code, notes, and snippets.

//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()
@gquemener
gquemener / FooSpec.php
Created May 5, 2014 15:00
Consecutive calls mocking /w phpspec
<?php
/**
* What I want to achieve
*/
class FooSpec
{
function it_does_stuff($collab)
{
$collab->doCollabStuf()->willReturn('foo'); // Returns foo the first time