CGeorge
(Jorge Barata Gonzalez)
1
I can link related models using ActiveRecord::link().
I miss some method to check whether both models have already been linked. I would be useful for checking the existence of the link before linking it.
[size="2"]For example:[/size]
public function isLinked($name, $model)
samdark
(Alexander Makarov)
2
What if it is valid to have 2 links? i.e. pivot table wihtout unique constraint.
schmauchi
(schmauchi)
3
@samdark: That was not the question. Even if it’s valid it could be useful to check for an existing link.