src/Franzose/ClosureTable/Models/Entity.php
protected function queryByParentId($id = null)
    {
        $id = ($id ?: $this->getKey());

        return $this->where($this->getParentIdColumn(), '=', $id);
    }
protected function queryByParentId($id = null)
    {
        $id = ($id ?: $this->getKey());

        return $this->where($this->getParentIdColumn(), '=', $id);
    }
protected function queryByParentId ( $ id = null ) { $ id = ( $ id ? : $ this -> getKey ( ) ) ; return $ this -> where ( $ this -> getParentIdColumn ( ) , '=' , $ id ) ; }
Starts a query by parent identifier.

@param mixed $id
@return QueryBuilder
Starts a query by parent identifier .