This commit is contained in:
Nicolas Le Goff
2011-12-19 19:08:20 +01:00
parent 9a7c326d6c
commit d4367e0944
4 changed files with 233 additions and 35 deletions

View File

@@ -16,7 +16,7 @@
* @link www.phraseanet.com
*/
namespace PhraseaFixture\Basket;
namespace PhraseaFixture;
class AbstractUser
{

View File

@@ -21,10 +21,13 @@ use Doctrine\Common\DataFixtures\FixtureInterface;
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
class Root extends AbstractUser implements FixtureInterface
class Root extends \PhraseaFixture\AbstractUser implements FixtureInterface
{
public $basketId;
/**
*
* @var \Entities\Basket
*/
public $basket;
public function load($manager)
{
@@ -34,7 +37,7 @@ class Root extends AbstractUser implements FixtureInterface
$basket->setOwner($this->user);
$manager->persist($basket);
$manager->flush();
$this->basketId = $basket->getId();
$this->basket = $basket;
}
}