common/models/base/ModelResource.php
public static function findFirstByParent( $parentId, $parentType, $config = [] ) {

		return self::queryByParent( $parentId, $parentType, $config )->one();
	}
public static function findFirstByParent( $parentId, $parentType, $config = [] ) {

		return self::queryByParent( $parentId, $parentType, $config )->one();
	}
public static function findFirstByParent ( $ parentId , $ parentType , $ config = [ ] ) { return self :: queryByParent ( $ parentId , $ parentType , $ config ) -> one ( ) ; }
Find and return first model using given parent id and parent type.

@param string $parentId
@param string $parentType
@param array $config
@return \cmsgears\core\common\models\base\ActiveRecord
Find and return first model using given parent id and parent type .