0
idempresa
필드를 sfDoctrineGuardPlugin에 연결하려고 시도했지만 작동하지 않습니다. Symfony 및 sfDoctrineGuard 플러그인에서 프로필 필드를 생성 된 사용자에게 첨부하십시오.
# php symfony doctrine:dql "FROM sfGuardUser u, u.SfGuardUserProfile p"
>> doctrine executing dql query
내가이 오류 : 나는 이것을 실행하면
SdrivingEmpresa:
connection: doctrine
tableName: sdriving_empresa
columns:
idempresa:
type: integer(4)
fixed: false
unsigned: true
primary: true
autoincrement: true
idlogotipo:
type: integer(4)
fixed: false
unsigned: true
primary: true
autoincrement: false
nombre_empresa:
type: string(250)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
ruta_emp:
type: string(45)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
SdrivingLogotipo:
local: idlogotipo
foreign: idlogotipo
type: one
SdrivingEmisor:
local: idempresa
foreign: idempresa
type: many
SdrivingMaquina:
local: idempresa
foreign: idempresa
type: many
SdrivingOperador:
local: idempresa
foreign: idempresa
type: many
SdrivingTurno:
local: idempresa
foreign: idempresa
type: many
SfGuardUserProfile:
local: idempresa
foreign: idempresa
type: many
SfGuardUserProfile:
connection: doctrine
tableName: sf_guard_user_profile
columns:
user_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
idempresa:
type: integer(4)
fixed: false
unsigned: true
primary: true
autoincrement: false
relations:
SfGuardUser:
local: user_id
foreign: id
type: one
SdrivingEmpresa:
local: idempresa
foreign: idempresa
type: one
이 그 테이블에 대한 schema.yml 파일 (단지 관련 테이블)입니다 난 무엇
>> DQL: FROM sfGuardUser u, u.SfGuardUserProfile p
>> Unknown relation alias SfGuardUserProfile
잘못하고있는거야? 내 실수는 어디 갔지? 같은 SfGuardUserProfile 엔티티에 sfGuardUser에 대한 foreignAlias를 추가
덕분에,이 문제를 해결 – Reynier