Yii Framework Forum: How To Correct A Cexception Caused Due To Case Sensitive Column Name - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Correct A Cexception Caused Due To Case Sensitive Column Name Rate Topic: -----

#1 User is offline   Rudra 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 118
  • Joined: 12-July 13

Posted 04 March 2014 - 12:34 AM

I'm new to Yii framework. My application designed with Yii 1.0 works fine in local system. When I migrated the same in production, I got
CException: Property not defined
exception.
The problem was :
Date field in a table was case sensitive. In my local system, Date was
Date
, but in production Date was
date
. This caused an exception.
To correct this exception, I used get and set methods as shown below -
public function getdate()
{
    return $this->date;
}

public function setdate($date)
{
    $this->date = $date;
}

But I'm not sure if I can use this to correct the exception. Is it the right way to correct such exceptions. Please help as I'm the only one working on this in my office and no guide.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users