Last active
August 29, 2015 13:55
-
-
Save dcsg/8698657 to your computer and use it in GitHub Desktop.
Revisions
-
dcsg revised this gist
Jan 29, 2014 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,9 +6,10 @@ { public function myAction() { // ... $this->getDoctrine() ->getRepository('MyBundle:File') ->findByTags($tag); // Throws: Undefined index: joinColumns in vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php line 1495 } -
dcsg revised this gist
Jan 29, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public function myAction() { $this->getDoctrine() ->getRepository('MyBundle:File') ->findByTags($id); // Throws: Undefined index: joinColumns in vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php line 1495 } -
dcsg created this gist
Jan 29, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ <?php // ... class File { /** * @Id * @GeneratedValue * @Column(type="bigint") * * @var int */ private $id; /** * @ManyToMany(targetEntity="Tag") * @JoinTable(name="file_tags", * joinColumns={@JoinColumn(name="file_id", referencedColumnName="id")}, * inverseJoinColumns={@JoinColumn(name="tag_id", referencedColumnName="id")} * ) * * @var Collection */ private $tags; //.. } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ <?php // ... Class MyController { public function myAction() { $this->getDoctrine() ->getRepository('MyBundle:File') ->findByTag($id); // Throws: Undefined index: joinColumns in vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php line 1495 } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ <?php // ... class Tag { /** * @Id * @GeneratedValue * @Column(type="bigint") * * @var int */ private $id; //.. }