JTableNested::check
Checks that the object is valid and able to be stored.
This method checks that the parent_id is non-zero and exists in the database. Note that the root node (parent_id = 0) cannot be manipulated with this class.
Signature
public function check()
Returns
- boolean
- True if all checks pass.
Errors/Exceptions
-
Exception
-
RuntimeException
- on database error.
-
UnexpectedValueException