public static function getFields() { return ['name' => ['class' => CharField::className()], 'projects' => ['class' => ManyToManyField::className(), 'modelClass' => Project::className(), 'through' => ProjectMembership::className()]]; }
public static function getFields() { return ['project' => ['class' => ForeignField::className(), 'modelClass' => Project::className()], 'worker' => ['class' => ForeignField::className(), 'modelClass' => Worker::className()], 'position' => ['class' => IntField::className()], 'curator' => ['class' => ForeignField::className(), 'modelClass' => Worker::className()]]; }