You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but bin/console doctrine:fixtures:load --em=blog --env=webnou --group=webnou after answering yes for purge is not creating any row in the cat table :( I am lost for the moment and maybe you can provide a hint or an ideea...
The text was updated successfully, but these errors were encountered:
I see now that
private function loadFromIterator(Iterator $iterator): array
is require_once $sourceFile;
so is expecting a PHP file as long as I send a yml file
Hi
I use doctrine/doctrine-fixtures-bundle": "^3.3", now is 3.4.0
and I try to load my fixtures from a data.yml file with:
bin/console doctrine:fixtures:load --em=blog --env=webnou --group=webnou
from a LoadUserData class
class LoadUserData extends Fixture implements ContainerAwareInterface, FixtureGroupInterface
{
/**
* @var ContainerInterface
*/
private $container;
}
I have the data.yml specified above with the content:
include:
- data/categorii.yml
categorii.yml specified above
App\Blogger\BlogBundle\Entity\Cat:
root:
name: ROOT
servicii_web:
name: Web
parent: '@root'
....
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
Blogger\BlogBundle\Entity\Cat
@gedmo\Tree(type="nested")
use repository for handy tree functions
@Orm\Entity(repositoryClass="App\Blogger\BlogBundle\Entity\Repository\CatRepository")
@Orm\Table(name="cat")
@Orm\HasLifecycleCallbacks
/
class Cat
{
/*
*/
protected $id;
/**
name
", type="string", length=64)*/
protected $name;
/**
*/
protected $slug;
/**
*/
protected $lft;
....
but bin/console doctrine:fixtures:load --em=blog --env=webnou --group=webnou after answering yes for purge is not creating any row in the cat table :( I am lost for the moment and maybe you can provide a hint or an ideea...
The text was updated successfully, but these errors were encountered: