for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LaravelDoctrine\Fluent\Relations\Traits;
trait Indexable
{
/**
* @param string $index
*
* @return $this
*/
public function indexBy($index)
$this->getAssociation()->setIndexBy($index);
return $this;
}
* @return \Doctrine\ORM\Mapping\Builder\OneToManyAssociationBuilder
abstract public function getAssociation();