Hi,
I never played with ArrayAccess interfaces.
$authors = clone $tutorial->get('authors'); //might not work, dunno if
Doctrine_Collection have its __clone method; anyway its not the purpose
$tutorial->get('authors')->delete(); //delete associations from this tuto to
all its authors
$tutorial->ge
ok.. shame on me.. it works with:
$author_tutorial = new AuthorTutorial();
$author_tutorial->author_id = $author->getId();
$author_tutorial->tutorial_id = $tutorial->getId();
$author_tutorial->save();
But how do I check for duplicates - if the $author is already linked
with the tutorial? Do I need