On Wednesday, 16 November 2011 15:55:22 UTC+1, RhythmicDevil wrote:
>
> thanks for the tips man, I appreciate it.
>
> I will never have to do cascades or anything like that. I am simply
> creating a JSON string to be sent to our API.
I know - I mean pass the right arguments so you go directly
thanks for the tips man, I appreciate it.
I will never have to do cascades or anything like that. I am simply
creating a JSON string to be sent to our API. The API will take care
all the Database stuff. In reality the model and datasource are pass
throughs that do some formatting for the API.
O
On Wednesday, 16 November 2011 15:24:14 UTC+1, RhythmicDevil wrote:
>
> I am writing a custom datasource. I was implementing the delete action
> in the datasource and ran into a problem. I expected that when I call
> Model::delete($id, false); it would execute the Datasource::delete()
> method
I am using this doc as a reference:
http://book.cakephp.org/2.0/en/models/datasources.html
It says that I must do the following which I did so I am confused by
the results.
Methods that must be implemented
describe($model)
listSources()
At least one of:
create($model, $fields = array(), $va
For reference here is my Datasource file.
Http = $Http;
}
public function describe($model)
{
return $this->description;
}
public function listSources()
{
}
/**
*
* @param AppModel $model
* @param array $queryData
*/
public functio
I am writing a custom datasource. I was implementing the delete action
in the datasource and ran into a problem. I expected that when I call
Model::delete($id, false); it would execute the Datasource::delete()
method. But that does not happen. First a method called calculate() is
executed and then