RedBeanPHP\QueryWriter\AQueryWriter::renameAssociation PHP 메소드

renameAssociation() 공개 정적인 메소드

또한 보기: QueryWriter::renameAssociation
public static renameAssociation ( $from, $to = NULL )
    public static function renameAssociation($from, $to = NULL)
    {
        if (is_array($from)) {
            foreach ($from as $key => $value) {
                self::$renames[$key] = $value;
            }
            return;
        }
        self::$renames[$from] = $to;
    }

Usage Example

예제 #1
0
파일: Facade.php 프로젝트: up9cloud/redbean
 /**
  * Facade method for AQueryWriter::renameAssociation()
  *
  * @param string|array $from
  * @param string       $to
  *
  * @return void
  */
 public static function renameAssociation($from, $to = NULL)
 {
     AQueryWriter::renameAssociation($from, $to);
 }