Commit 5e5a03c7 by irul

update func sspd() - Models/Spt.php

1 parent 886b1864
......@@ -82,11 +82,11 @@ class Spt extends AbstractModel
}
/**
* Get the sspd record associated with the spt.
* Get the valid sspd record associated with the spt.
*/
public function sspd()
{
return $this->hasOne($this->getParentNamespace() . '\Sspd');
return $this->hasOne($this->getParentNamespace() . '\Sspd')->where('is_valid','=', 1);
}
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!