/** * Creates the form with all the elements. * * Options are: * * * ignorePks:boolean If the primary-key fields should be present in the form * * ignoreFks:boolean If the foreign-key fields should be present in the form * * The rest are passed to the Curry Form. * * @param string $modelClass * @param mixed $options */ public function __construct($modelClass, $options = null) { parent::__construct($options); $this->modelClass = $modelClass; $this->modelMap = PropelQuery::from($this->modelClass)->getTableMap(); $this->createElements(); }