-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with HABTM relationships #19
Comments
@manzapanza -- My apologies. I haven't been getting notified of issues or pull requests so I'm playing catch up having just noticed the activity. It looks like your config might be wrong. Try:
|
@robwilkerson Thank you for your reply! I'm tested your suggestion but seems that don't work... House.php:
Property.php:
View/Houses/admin_edit.ctp:
HousesController.php / function admin_edit
When change House data's the Json_object stored on audits table is without Property datas. like this:
|
Take a look at the readme. Specifically, this line in the
It looks like that's what you're trying to do. Am I reading your code wrong? |
Honestly I did not understand this sentence, especially "don't include it here". |
I don't remember the details now, but there were issues auditing both the relationship data ( |
I'm working in 2.x |
@manzapanza could you try |
@xhs345 close due to inactivity? |
I think having a test case for HABTM would be good before closing this issue |
True! |
I have a standard habtm config.
House habtm Property, with the table houses_properties and without the model HouseProperty.
On House model:
public $actsAs = array('AuditLog.Auditable' => array('Property'));
But when I change the house id = 20 changing only an association of a property in the table audits not recorded any changes!
The text was updated successfully, but these errors were encountered: