Commit c5e60f3e authored by guilhermeblanco's avatar guilhermeblanco

Adjusted ownsOne and ownsMany methods errors to be better descriptives

parent 5eecd969
...@@ -211,7 +211,10 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access ...@@ -211,7 +211,10 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
*/ */
public function ownsOne() public function ownsOne()
{ {
throw new Doctrine_Exception('ownsMany() has been deprecated.'); throw new Doctrine_Exception(
'ownsMany() has been deprecated. ' .
'To create a composite relationship, use hasMany() with onDelete CASCADE option.'
);
} }
/** /**
...@@ -227,7 +230,10 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access ...@@ -227,7 +230,10 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
*/ */
public function ownsMany() public function ownsMany()
{ {
throw new Doctrine_Exception('ownsOne() has been deprecated.'); throw new Doctrine_Exception(
'ownsOne() has been deprecated. ' .
'To create a composite relationship, use hasOne() with onDelete CASCADE option.'
);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment