protected static function buildChainTasks( \Bond\Entity\Base $entity, $columns )
    {

        $tasks = array();

        foreach( $columns as $column ) {

            $value = $entity->get($column);

            // chain saving
            if( is_object($value) and $value instanceof ChainSavingInterface ) {
                $value->chainSaving( $tasks, $column );
            }

        }

        return $tasks;

    }
protected static function buildChainTasks( \Bond\Entity\Base $entity, $columns )
    {

        $tasks = array();

        foreach( $columns as $column ) {

            $value = $entity->get($column);

            // chain saving
            if( is_object($value) and $value instanceof ChainSavingInterface ) {
                $value->chainSaving( $tasks, $column );
            }

        }

        return $tasks;

    }
protected static function buildChainTasks ( \ Bond \ Entity \ Base $ entity , $ columns ) { $ tasks = array ( ) ; foreach ( $ columns as $ column ) { $ value = $ entity -> get ( $ column ) ; // chain saving if ( is_object ( $ value ) and $ value instanceof ChainSavingInterface ) { $ value -> chainSaving ( $ tasks , $ column ) ; } } return $ tasks ; }
Get chain tasks
@param Bond\Entity\Base $entity
@param array $chainTasks
@param array $columns
@return null
Get chain tasks