Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Commit

Permalink
Merge pull request #404 from localheinz/fix/auto-increment
Browse files Browse the repository at this point in the history
Fix: No need to manually set primary key anymore
  • Loading branch information
Ocramius committed Feb 20, 2015
2 parents 18f3019 + 7d75fb0 commit 1270d4c
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,25 +174,17 @@ public function testFindByLikeMatchesEntitiesWhereAllWordsExist()
}

/**
* @todo Id shouldn't need to be set, but currently missing auto_increment
* @link https://github.com/zendframework/modules.zendframework.com/pull/340
*
* @return Entity\Module
*/
private function module()
{
static $id = 1;

$module = new Entity\Module();

$module->setId($id);
$module->setName('');
$module->setOwner('');
$module->setDescription('');
$module->setUrl('');

$id++;

return $module;
}
}

0 comments on commit 1270d4c

Please sign in to comment.