[FLOW3-general] A question about multivalue properties

Franz franz.kugelmann at elementare-teilchen.de
Sat Feb 19 14:00:40 CET 2011


Hi Oliver,
late answer, but maybe still helpful.
Have a look at the blog example.
There you can see in the classes CommentController and Post, how 
comments are removed, which should be exacly what you want.
In the Post-Object, just a single comment is removed.
All the persisting (putting that new situation into the database) is 
done automatically by FLOW3.

public function removeComment(\F3\Blog\Domain\Model\Comment $comment) {
   $this->comments->detach($comment);
}

Greets
Franz

> Dear all,
>
> while working with FLOW3 - which truly is amazing so far - there still
> are a few things I'm trying to understand ;)
>
> In this case:
>
> If I do have a parent entity which obviously has a unique identifier and
> this entitiy has a child which is a multivalue property... Is there a
> way to access (in this case remove) a single item of those properties?
>
> When looking at the db structure with sqlitebrowser I can see the
> properties but no identifier for them but only an identifier for the
> whole multivalue property?!
>
> Any hint is highly appreciated :-)
>
> Thanks,
>
> Oliver


More information about the FLOW3-general mailing list