我正在通过put请求将实体发送到数据库,但是其中一个变量给我带来了麻烦。我想知道是否有一种方法可以从请求中排除单个变量。
我正在使用axios进行数据库连接。
这是要发送的实体。
class YamlItem(pytest.Item):
def runtest(self):
run_yml = self.config.getoption('--run-yml')
...
这是放置请求。
$this->id = 0;
$this->user = '';
$this->type = '';
$this->status = null;
$this->signatureList = new ArrayCollection();
//this is the array i want to exclude
$this->amendmentList = new ArrayCollection();
$this->draft = true;
$this->archived = false;
$this->canceled = false;
$this->finished = false;
$this->signed = false;
$this->subject = null;
$this->content = '';
$this->createdAt = new \DateTime();
parent::__construct();