Actually Joe,
The listing does not save for me.
I get the error that it couldn't save.
Also, the debugger shows that the entities for the joint data have errors
which say that the attribute_id and listing_id are required but not
supplied.
In that the attribute_id is known, it could be passed alo
Also, just to clarify, i'm not adding new Attributes in the Listing form.
i'm displaying them, and when the user checks them, a text input is shown
for those that require it. The only data i need to save apart from the
Listing is in ListingsAttributes:
attribute_id : 1 (Attribute's checkbox valu
Thanks for responding.
So i might NOT be crazy???
The 3 you identified as the ID isn't - it's the array index for that
listing field. See the inputs again. "Parking" is index 3, its record ID is
1. i wouldn't want to insert 3 as the *listings_attributes.attribute_id*.
i re-baked the Tables, En
I took the time to construct a test project with the 3 join tables and was
able to get data that looks like the documentation requires, but it refuses
to save.
The joint marshaller chokes because no listing_id, and no attribute_id is
found when marshalling the _joinData.
I don't see in the docu
Hi, in cakephp I used a 'find all' to do a complex and this works fine as
below. My issue is I am trying to convert this to a set paginated results
and I keep getting offset warning Illegal offset type
[CORE\Cake\Model\Model.php, line 2936.
I am sure the issue is simple but is there a way to to
If Listings is the table being saved, having attributes, then there seems
to be something wrong with your data.
I believe that your data should look like the following:
$data = [
'attributes' => [
[
'id' => 3, //provided the id is already known
'_joinData' =>