我将此实体映射到FOSElasticaBUndle:
content:
mappings:
preTitle: ~
title: ~
code: ~
subtitle: ~
inlet: ~
text: ~
lang: ~
status: ~
created_at:
type: date
dueDate:
type: date
author:
type: 'nested'
properties:
id: ~
fullName: ~
developerArea:
type: 'nested'
properties:
id: ~
name: ~
type:
type: 'nested'
properties:
id: ~
name: ~
universities:
type: 'nested'
properties:
id: ~
name: ~
communicationSupports:
type: 'nested'
properties:
id: ~
name: ~
newsProtagonists:
type: 'nested'
properties:
id: ~
name: ~
finalDestinataries:
type: 'nested'
properties:
id: ~
name: ~
brandAttributes:
type: 'nested'
properties:
id:
academicPrestige: ~
socialImpact: ~
criticalSpirit: ~
pedagogicalInnovation: ~
investigation: ~
competencyDevelopment: ~
dsiValues: ~
prideBelonging: ~
internationalization: ~
employability: ~
我想配置它以获取按created_at
字段排序的所有查询。
我知道我可以编程方式执行此操作,但是我的项目已经开始进行大量查询。有什么方法比修改所有查询更容易?