CakehasM 3 hasMany -> always empty

2016-01-07 Thread Bogdan Soos
Hi there, I am having a problem with hasMany. Here is my case: Models: ContractTable -> hasMany -> CustomValues table('offresmop_contratclt'); $this->displayField('cleaffaires'); $this->primaryKey('cleaffaires'); $this->addBehavior('Timestamp'); $this->belongsTo(

Re: CakehasM 3 hasMany -> always empty

2016-01-07 Thread John Andersen
Hi Bogdan Is the below correct? To me it does not seem correct :) $this->belongsTo('Contract', [ 'className' => 'Tranquillity.Contract', Enjoy, John On Thursday, 7 January 2016 13:01:30 UTC+2, Bogdan Soos wrote: > > Hi there, > > I am having a problem with hasMany. > Here is my ca

Re: CakehasM 3 hasMany -> always empty

2016-01-07 Thread Bogdan SOOS
Hi John, Thank you for your answer . It's correct, because the model are in plugin called Tranquillity:) it gets the class, the entity, everything seems to be where it should... Just the data in the property is missing. Bogdan Sent from my iPhone > On 07 Jan 2016, at 19:07, John Andersen wr

Re: ajax pagination

2016-01-07 Thread euromark
See http://sandbox3.dereuromark.de/sandbox/ajax-examples Mark Am Dienstag, 5. Januar 2016 10:21:29 UTC+1 schrieb Kamlesh Gupta: > > Hello, > > I am facing a problem of pagination in cakephp 3.14.. > > How can we make a ajax pagination in cakephp 3.1.4 > > would anyone please help me. > -- Like

how to use authentication in rest json apis

2016-01-07 Thread Amit Gora
I am using cakephp default restfull apis and created a new controller with default app of cakephp but as for now i have removed auth and without outh apis are working fine but for security purpose i have to add authentication and i have a user login part also so please can anyone help me to add