Closed Martin1982 closed 8 years ago
it is now possible to specify the getter property with parameters. In your case:
/**
* @var \DateTime
*
* @Solr\Field(type="datetime", getter="format('d.m.Y')")
*
* @ORM\Column(name="timestamp_start", type="datetime", nullable=true)
*/
private $timestampStart;
Looking into the bundle while running a
solr:index:populate
certain entities do not get indexed. While doing some debugging I ended up with a \DateTime object which was trying to be used as an entity/document.So because it is not a string representation it's skipping the indexing for the entity with this property entirely. When I remove this field definition (only text-type fields are left then), the indexing runs smoothly.