FactoryGenerator has very limited lists of methods and properties for accessing models primary keys. For example in Yii2 framework the method for accessing primary key is getPrimaryKey(). With this commit setters and getters are added so these lists can be modified.
I'd probably recommend making your own specific class that extends the entity generator class. I don't like modifying stuff at runtime like this. I'd much prefer the class to be immutable.
FactoryGenerator has very limited lists of methods and properties for accessing models primary keys. For example in Yii2 framework the method for accessing primary key is getPrimaryKey(). With this commit setters and getters are added so these lists can be modified.