Your trick would worf fine thanks. However, something still seems
wrong for me, since i'm trying not to hack the whole design.
Datasource::isInterfaceSupported() do what I would expect (it tells if
a method is implemented).
But Datasource::listSources() does actually not list the sources
(instead
Overload DataSource::isInterfaceSupported() method to not report
listSources() method as available if you don't like it so much.
On Mar 31, 4:34 pm, Clément Hallet wrote:
> I overloaded the $mydatasource->describe() method to return the
> $model->_schema value ($model comes as a parameter to des
I overloaded the $mydatasource->describe() method to return the $model-
>_schema value ($model comes as a parameter to describe). It would
work but an other issue (at least, it seems to be for me).
My real issue is elsewhere and I wonder if it's a mistake in the
global design. Let's focus on it :
Model have schema() method which call describe() method of data source
if supported. For manual per-model schemas you can override its
schema() method. For datasource-managed schemas you should take a look
into its describe() method.
On 29 мар, 03:50, Clément Hallet wrote:
> Hello CakePHP,
>
> Tr
Hello CakePHP,
Trying to implement a CouchDB datasource and to closely follow the
CakePHP guidelines,
I'm in a trick situation :
When saving a new record, it's required to have the fields matching
the schema :
https://github.com/cakephp/cakephp/blob/master/cake/libs/model/model.php#L1308
So, i p
Hello CakePHP,
Trying to implement a CouchDB datasource and to closely follow the CakePHP
guidelines,
I'm in a trick situation :
When saving a new record, it's required to have the fields matching the schema
: https://github.com/cakephp/cakephp/blob/master/cake/libs/model/model.php#L1308
So,