[Flow] Tags as a model

Rik Willems rik at metmeer.nl
Thu Apr 17 21:37:05 CEST 2014


Hi Dominique,

Thanks for this hint, I'll look into it.
Understanding your words I understand no implementation is available 
that has a similar type of relation? For me it's not about tags or 
taxonomy per se, more about the principle in general. Implementing it as 
tags later on would be a nice benefit.

Cheers!

Dominique Feyer schreef op 17-04-14 17:40:
> Taxomony is not an easy topic at all ;)
>
> For a basic idea of Taxonomy and Taxon, read:
> http://sylius.readthedocs.org/en/latest/bundles/SyliusTaxonomiesBundle/taxonomy_and_taxon.html
>
> To support finding multiple entities type during the same query, you can use a « relation object » , with property like:
>
> object (UUID of the tagged object)
> className (classname of the tagged object)
> taxon (UUID of the taxon object)
> createdAt (when the taxon as been applied)
>
> With a dedicated Repository you can retrieve entity my className (or type), or by taxon (or tag).
>
> The relation in the DB are weak so you don’t have a real relation between your « relation object » and the entity. So you need some logic to cleanup the index if some entry are removed, … Maybe simply adding an annotation « Taggeable » in the entity can be a solution.
>
> For your rating system, you can found some inspiration in the taxonomy topic, but in the case your Relation Object must store some other data, like the rating, the user who do the rating, ...
>
> Hope that help,
>
> Bests,
>
> --
> ttree sàrl
> Dominique Feyer
> Rue du Valentin 34 et demi
> CH - 1004 Lausanne
> +41 21  312 36 35
> dfeyer at ttree.ch
> ttree.ch - @ttreeagency - plan d’accès
>


More information about the Flow mailing list