Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fatal error: Call to a member function setNom() on a non-object in /nfs/http6/vivafaune/www/src/VIVAFaune/AnnuaireBundle/DataFixtures/ORM/LoadAnnuareCategorieData.php on line 14
- //LoadAnnuaireCategorieData
- <?php
- namespace VIVAFaune\AnnuaireBundle\DataFixtures\ORM;
- use Doctrine\Common\DataFixtures\FixtureInterface;
- use VIVAFaune\AnnuaireBundle\Entity\AnnuaireCategorie;
- class LoadAnnuaireCategorieData implements FixtureInterface
- {
- public function load($manager)
- {
- $annuaireCategorie = new AnnuaireCategorie();
- $AnnuaireCategorie->setNom(array(
- 'Eleveurs' => 'Eleveurs',
- 'Clubs' => 'Clubs',
- 'Magasins' => 'Magasins',
- 'Parcs et Zoos' => 'Parcs et Zoos',
- 'Vétérinaires' => 'Vétérinaires',
- ));
- }
- }
- //Entity\AnnuaireCategorie
- <?php
- namespace VIVAFaune\AnnuaireBundle\Entity;
- /**
- * @orm:Entity
- */
- class AnnuaireCategorie
- {
- /**
- * @orm:Id
- * @orm:Column(type="integer")
- * @orm:GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @orm:Column(type="string", length=128)
- */
- protected $nom;
- /**
- * Get id
- *
- * @return integer $id
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set nom
- *
- * @param string $nom
- */
- public function setNom($nom)
- {
- $this->nom = $nom;
- }
- /**
- * Get nom
- *
- * @return string $nom
- */
- public function getNom()
- {
- return $this->nom;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement