function __construct($primaryKey = 'id', $foreignKey = '%s_id') { if ($foreignKey === null) { $foreignKey = $primaryKey; } $this->primaryKey = $primaryKey; $this->foreignKey = $foreignKey; }