[TYPO3-dev] Remove records from extbase query result

Richard Achatz info at richardachatz.de
Fri Jan 17 09:43:03 CET 2014


Sorry for my Spam. I see you need a constraint . I should read more carefully



Richard Achatz <info at richardachatz.de> schrieb:
>Hi,
>Why not adding a new field 'distance' to the model which is not
>persistent and place the calculation in the getter?
>Ahoi 
>
>
>
>Dirk Wenzel <wenzel at webfox03.de> schrieb:
>>Hi Philipp,
>>just for the sake of completeness: if it *would* be possible to use
>the
>>
>>haversine algorithm with a $query->calculate(...) I would not do it 
>>because that would require to perform this calculation on _each_
>>record.
>>
>>I think the better solution is to narrow the result beforehand by
>using
>>
>>the probably much faster bounding box method. That's what I do now
>with
>>
>>my extension placements.
>>
>>Thank you very much for sharing your thoughts!
>>
>>Cheers
>>Dirk
>>
>>Am 15.01.14 08:08, schrieb Philipp:
>>> the @transient annotation is allready available in extbase, but it
>>does
>>> only tell the system not to persist the property.
>>>
>>> The feature described is not possible at the moment but it would
>make
>>> sense to give transient properties a use, it would be a nice way to
>>map
>>> query-specific results in your models. I would be very grateful for
>>such
>>> a feature.
>>>
>>> When i implemented the other possibility described i will share it
>>here
>>> but at the moment i dont have time. Currently i dont use a radial
>>> search, i only limit vertical and horizontal offsets, so also a
>>bounding
>>> box, its good enough for me right now. The distance-calculation i
>>handle
>>> in a post-process.
>>_______________________________________________
>>TYPO3-dev mailing list
>>TYPO3-dev at lists.typo3.org
>>http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>
>-- 
>Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
>gesendet.Email sent using Axigen Free Mail Server:
>http://www.axigen.com/mail-server/free
>_______________________________________________
>TYPO3-dev mailing list
>TYPO3-dev at lists.typo3.org
>http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.Email sent using Axigen Free Mail Server:
http://www.axigen.com/mail-server/free


More information about the TYPO3-dev mailing list