for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AlgoWeb\PODataLaravel\Models;
class AssociationStubMonomorphic extends AssociationStubBase
{
public function isCompatible(AssociationStubBase $otherStub)
if (!parent::isCompatible($otherStub)) {
return false;
}
return $this->getForeignField() === $otherStub->getKeyField();