mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
test
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
|
||||
namespace PhraseaFixture\Basket;
|
||||
namespace PhraseaFixture;
|
||||
|
||||
class AbstractUser
|
||||
{
|
@@ -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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user