Jump to content


Photo

[Resolved] FailedAssertionException: self::isRelation($relationName, get_called_class())

Custom Unit Testing

  • Please log in to reply
No replies to this topic

#1 windsor

windsor

    Advanced Member

  • Moderators
  • 272 posts
  • LocationTampa, Florida USA

Posted 08 August 2013 - 11:00 PM

This error can occur if you have a MANY-MANY relationship and did not use plural name in one or both of  ...RelatedListView::getRelationAttributeName()

 

Stack trace starts with something like this:

 

C:\xampp\htdocs\zurmo2\app\protected\core\models\BeanModel.php:331
C:\xampp\htdocs\zurmo2\app\protected\core\adapters\RedBeanModelAttributeToDataProviderAdapter.php:263
C:\xampp\htdocs\zurmo2\app\protected\core\utils\ModelWhereAndJoinBuilder.php:78
C:\xampp\htdocs\zurmo2\app\protected\core\utils\ModelDataProviderUtil.php:274
C:\xampp\htdocs\zurmo2\app\protected\core\utils\ModelDataProviderUtil.php:200
C:\xampp\htdocs\zurmo2\app\protected\core\dataproviders\RedBeanModelDataProvider.php:215
C:\xampp\htdocs\zurmo2\app\protected\core\dataproviders\RedBeanModelDataProvider.php:225






Also tagged with one or more of these keywords: Custom, Unit Testing

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users