누구나 PHP의 symfony1.4에서 데이터베이스보기를 처리하는 방법에 대한 아이디어가?Symfony를 사용하여 데이터베이스 뷰를 처리하는 방법은 무엇입니까?
내가보기 'ABC'수동으로 DB에서 만들었습니다. 이제 조회에서 where 절을 추가하여 'ABC'보기에서 레코드를 선택하려고합니다. 가능한 경우 예제를 제공하십시오.
편집 :
내 스키마는 다음과 같습니다
Product:
columns:
name: { type: string(127), notnull: true }
launch_date: { type: date }
price: { type: integer }
status_id: { type: integer }
ProductLocation :
product_id: { type: integer }
name: { type: string(50) }
launch_date: { type: date }
relations:
Product: {onDelete: RESTRICT, local: product_id, foreign: id, foreignAlias: "Products" }
나는 두 테이블의 조합에 대한보기를 만들려고합니다. 감사
무엇 ORM 너 사용하고있어? –
Doctrine ORM –