-
(Boolean) bindAndSave (, , )
Browse code
Binds the current form and saves the object to the database in one step.
returns true if the form is valid, false otherwise
-
-
| $con |
An optional connection object |
Updates and saves the current object.
If you want to add some logic before saving or save other associated
objects, this is the method to override.
-
doUpdateObject ($values)
Browse code
| $values |
An array of values |
Updates the values of the object with the cleaned up values.
If you want to add some logic before updating or update other associated
objects, this is the method to override.
-
(mixed) getConnection ()
Browse code
Returns the default connection for the current model.
returns A database connection
-
(string) getModelName ()
Browse code
Returns the current model name.
-
Returns the current object for this form.
returns The current object
-
Returns true if the current form embeds a new object.
returns true if the current form embeds a new object, false otherwise
-
(array) processValues ($values)
Browse code
| $values |
An array of values |
Processes cleaned up values.
returns An array of cleaned up values
-
(string) renderFormTag ($url, $attributes)
Browse code
| $url |
The URL for the action |
| $attributes |
An array of HTML attributes |
Renders a form tag suitable for the related object.
The method is automatically guessed based on the Doctrine object:
* if the object is new, the method is POST
* if the object already exists, the method is PUT
returns An HTML representation of the opening form tag
-
| $con |
An optional connection object |
Saves the current object to the database.
The object saving is done in a transaction and handled by the doSave() method.
returns The current saved object
throws sfValidatorError If the form is not valid
-
saveEmbeddedForms ($con, $forms)
Browse code
| $con |
An optional connection object |
| $forms |
An array of forms |
Saves embedded form objects.
-
(mixed) updateObject ($values)
Browse code
| $values |
An array of values |
Updates the values of the object with the cleaned up values.
returns The current updated object
-
updateObjectEmbeddedForms ($values, $forms)
Browse code
| $values |
An array of values |
| $forms |
An array of forms |
Updates the values of the objects in embedded forms.