We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$relationTable = $input->getOption('relationTable'); $foreignKey = $input->getOption('foreignKey'); $primaryKey = $input->getOption('primaryKey'); $relationModelFilename = $input->getOption('relationModelFilename'); $relationOnlyFileds = $input->getOption('relationOnlyFileds'); $relationBindSelect = $input->getOption('relationBindSelect'); $force = $input->getOption('force'); $delete = $input->getOption('delete'); $relations = []; foreach ($relationTable as $key => $val) { $relations[] = [ 'table' => $relationTable[$key], 'foreignKey' => isset($foreignKey[$key]) ? $foreignKey[$key] : null, 'primaryKey' => isset($primaryKey[$key]) ? $primaryKey[$key] : null, 'modelFilename' => isset($relationModelFilename[$key]) ? $relationModelFilename[$key] : null, 'onlyFileds' => isset($relationOnlyFileds[$key]) ? explode(",", $relationOnlyFileds[$key]) : [], 'relationBindSelect' => isset($relationBindSelect[$key]) ? $relationBindSelect[$key] : null, ]; }
看源码的话,是可以一行命令同时关联多个字段多个表的, 但是命令行怎么写呢,用,分割吗?
,
像onlyFileds本身就要用,分割,怎么区分对哪个的表的.
onlyFileds
The text was updated successfully, but these errors were encountered:
No branches or pull requests
看源码的话,是可以一行命令同时关联多个字段多个表的,
但是命令行怎么写呢,用
,
分割吗?像
onlyFileds
本身就要用,
分割,怎么区分对哪个的表的.The text was updated successfully, but these errors were encountered: