/**
 * Method to bind the data.
 *
 * @param   array  $array   The data to bind.
 * @param   mixed  $ignore  An array or space separated list of fields to ignore.
 *
 * @return  boolean  True on success, false on failure.
 *
 * @since   1.7.0
 */
public function bind($array, $ignore = '')
{
    // Bind the rules as appropriate.
    if (isset($array['rules'])) {
        if (\is_array($array['rules'])) {
            $array['rules'] = json_encode($array['rules']);
        }
    }
    return parent::bind($array, $ignore);
}