0

I have the following in $this->request->data in a form post:

Array
(
    [Customer] => Array
        (
            [first_name] => Test
            [last_name] => test
            [dob] => Array
                (
                    [month] => 11
                    [day] => 10
                    [year] => 2014
                )

        )

    [Service] => Array
        (
            [Service] => 1
        )

)

which also creates a record in a join table customers_services (model CustomersService).

What I want to do is touch the created field in the join table but not sure how. Any ideas anyone? Thanks.

khany
  • 1,167
  • 15
  • 33

1 Answers1

0

Don't really understand what you're trying to do.

By default, for every Model save, created and modified will be automatically set by CakePHP itself.

Nizam
  • 505
  • 1
  • 8
  • 20