In Yii2 how to create records in the database?

In YII2 after the user has registered, to create in another table, 10 entries?
here is a script user registration
 * Created by PhpStorm.
 * User: User
 * Date: 23.04.2018
 * Time: 19:31

namespace app\models;

use Yii;
use yii\base\Model;

class Signup extends Model
{public $username;
 public $email;
 public $password;
 public function rules()
 ['email', 'email'],
 public function signup()
 $developer=new developer();
 return $developer->save();


here is the field for the 2 tables
$model = new Product;
June 5th 19 at 21:43
2 answers
June 5th 19 at 21:45
Dig in the side events.
June 5th 19 at 21:47
If the event is difficult although this is a more correct solution, it is possible to model Developers to override the afterSave method.

Find more questions by tags Yii