2017-03-26 5 views
0

내가 CLASSE FicheController에서 평가 법인을 만들려면, 그래서 난 다음다른 네임 스페이스에 "사용"문을 잊어 버렸습니까?

use Polytech\SkillsBundle\Entity\SousOccasion; 
use Polytech\SkillsBundle\Entity\Evaluation; 
use Polytech\SkillsBundle\Entity\EvaluationCompetence; 
..... 

및 사용 :

$evaluation = new Evaluation(); 

을하지만 난이 오류를

Attempted to load class "Evaluation" from namespace "Polytech\SkillsBundle\Controller". 
Did you forget a "use" statement for another namespace? 
+0

'Evaluation'과'FicheController'는 어떤 네임 스페이스에 속합니까? –

+0

FicheController는 네임 스페이스 Polytech \ SkillsBundle \ Controller에 속해 있습니다. 평가는 ue Polytech \ SkillsBundle \ Entity에 속합니다. –

+0

평가 등급을 표시 할 수 있습니까? 특히 클래스 이름에서 맞춤법 오류를 확인하십시오. – ehymel

답변

0

해보십시오 $ 평가를받을 = 새로운 Polytech \ SkillsBundle \ Entity \ Evaluation();

+0

슬래시가 빠졌습니다. – zerkms

관련 문제