Adjusted ownsOne and ownsMany methods errors to be better descriptives
This commit is contained in:
parent
5eecd9696e
commit
c5e60f3e5c
@ -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
|
|||||||
*/
|
*/
|
||||||
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.'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user