pongo los script
Entity: Class
Código PHP:
/**
* @var \Doctrine\Common\Collections\Collection
* @ORM\ManyToMany(targetEntity="AbcMembers", inversedBy="schoolClas")
* @ORM\JoinTable(name="abc_student_class",
* joinColumns={
* @ORM\JoinColumn(name="school_clas", referencedColumnName="id")
* },
* inverseJoinColumns={
* @ORM\JoinColumn(name="student", referencedColumnName="id")
* }
* )
*/
private $student;
Código PHP:
public function recordAction($tutor)
{
$em = $this->getDoctrine()->getManager();
$entities = $em->getRepository('ABCIsystemBundle:AbcSchoolClass')->findOneBy('id'=>$tutot)); /
Código PHP:
{{entities.sy.code}} <br/>
Grade: {{entities.name}} <br/>
Tutor: {{entities.tutor.fullname}} <br/>
Como lo hago
probe esto y no me salio nada, ni error
Código PHP:
{{entities.student.member.fullname}}