cake-php@googlegroups.com
[Top] [All Lists]

Notice Error Undefined property with custom data source

Subject: Notice Error Undefined property with custom data source
From: Scott Koranda
Date: Tue, 10 Apr 2012 08:04:39 -0700 PDT
I am using CakePHP 2.0.5.

I have subclassed DataSource to create my own data source and have
implemented the describe(), listSources(), and CRUD methods as
outlined at

http://book.cakephp.org/2.0/en/models/datasources.html

When using the data source to instantiate instances of an AppModel
subclass I am seeing the following:

Notice Error: Undefined property: MySource::$startQuote in [/path/to/
app/lib/Cake/Model/Model.php, line 1269]

Notice Error: Undefined property: MySource::$endQuote in [/path/to/app/
lib/Cake/Model/Model.php, line 1269]

Notice Error: Undefined property: MySource::$columns in [/path/to/app/
lib/Cake/Model/Model.php, line 1569]

Is it expected that I should see these errors?

Do I need to define $startQuote, $endQuote, and $columns for my data
source class? If so is there documentation I can follow so that I
understand how they will be used?

Thanks,

Scott

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 
http://groups.google.com/group/cake-php

<Prev in Thread] Current Thread [Next in Thread>
  • Notice Error Undefined property with custom data source, Scott Koranda <=