2013-04-29 2 views
0

을 받기 나는 내가 할 수있는 Doctrine1와 Doctrine2 표 관계

Doctrine2

와 엔티티에서 하나/많은 관계 정보에/많은 일을 얻을 필요가 :

Doctrine::getTable('Article')->getRelations(); 

방법 Doctrine2 함께 할 수 있나요?

답변

1

이 경우 Doctrine\ORM\Mapping\ClassMetadataFactory을 사용할 수 있습니다. $metaData = $em->getMetadataFactory()->getMetadataFor('your_classname')