Skip to content

Commit

Permalink
Add doc about used methods in MagicPropertiesTrait [skip ci] (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov authored May 20, 2024
1 parent 9011106 commit 8c0a7be
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/Trait/MagicPropertiesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

use ReflectionException;
use Throwable;
use Yiisoft\ActiveRecord\ActiveQueryInterface;
use Yiisoft\ActiveRecord\AbstractActiveRecord;
use Yiisoft\ActiveRecord\ActiveRecordInterface;
use Yiisoft\Db\Exception\Exception;
use Yiisoft\Db\Exception\InvalidArgumentException;
use Yiisoft\Db\Exception\InvalidCallException;
Expand All @@ -26,6 +27,24 @@

/**
* Trait to define magic methods to access values of an ActiveRecord instance.
*
* @method array getRelatedRecords()
* @see AbstractActiveRecord::getRelatedRecords()
*
* @method bool hasDependentRelations(string $attribute)
* @see AbstractActiveRecord::hasDependentRelations()
*
* @method bool isRelationPopulated(string $name)
* @see ActiveRecordInterface::isRelationPopulated()
*
* @method void resetDependentRelations(string $attribute)
* @see AbstractActiveRecord::resetDependentRelations()
*
* @method void resetRelation(string $name)
* @see AbstractActiveRecord::resetRelation()
*
* @method ActiveRecordInterface|array|null retrieveRelation(string $name)
* @see AbstractActiveRecord::retrieveRelation()
*/
trait MagicPropertiesTrait
{
Expand Down

0 comments on commit 8c0a7be

Please sign in to comment.